jqxRating requires the following files:
jqx.base.cssjqxcore.jsjqxbuttons.jsjqxscrollbar.jsjqxlistbox.jsjqxRating.js<script src="~/jqwidgets/jqxrating.js"></script> @using jQWidgets.AspNetCore.Mvc.TagHelpers <jqx-rating count="8"></jqx-rating>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/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating instance="getInstance()"></jqx-rating>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
var result = instance["getValue"]();
}
</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/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating on-change="eventHandler()"></jqx-rating>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}