jqxTagCloud requires the following files:
jqx.base.cssjqxcore.jsjqxbuttons.jsjqxscrollbar.jsjqxlistbox.jsjqxTagCloud.js<script src="~/jqwidgets/jqxtagcloud.js"></script> @model IEnumerable<jQWidgets.AspNet.Core.Models.SalesEmployee> <jqx-tag-cloud display-member="Name" value-member="Price" theme="@ViewData["Theme"]" alter-text-case="titleCase" source="Model"></jqx-tag-cloud>To call a function(method), you need to pass the method name and parameters(if any) in the UI component’s instance.
<script src="~/jqwidgets/jqxtagcloud.js"></script>
@model IEnumerable<jQWidgets.AspNet.Core.Models.SalesEmployee>
<jqx-tag-cloud display-member="Name" value-member="Price" theme="@ViewData["Theme"]" instance="getInstance()" source="Model"></jqx-tag-cloud>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["findTagIndex"]('USA');
}
</script>
}
To bind to an event of a UI Component, you can use on-event-type syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxtagcloud.js"></script>
@model IEnumerable<jQWidgets.AspNet.Core.Models.SalesEmployee>
<jqx-tag-cloud display-member="Name" value-member="Price" theme="@ViewData["Theme"]" on-binding-complete="eventHandler()" source="Model"></jqx-tag-cloud>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}