Properties

count int 5

Sets or gets the count property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating count="8"></jqx-rating>
disabled bool false

Sets or gets the disabled property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating disabled="true"></jqx-rating>
height int auto

Sets or gets the height property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating height="35"></jqx-rating>
itemHeight int auto

Sets or gets the itemHeight property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating item-height="30"></jqx-rating>
itemWidth int auto

Sets or gets the itemWidth property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating item-width="20"></jqx-rating>
precision int 1

Sets or gets the precision property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating precision="0.5"></jqx-rating>
singleVote bool false

Sets or gets the singleVote property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating single-vote="true"></jqx-rating>
value int 0

Sets or gets the value property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating value="3"></jqx-rating>
width int auto

Sets or gets the width property.

<script src="~/jqwidgets/jqxrating.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<jqx-rating width="350"></jqx-rating>

Events

change Event

Code examples

Bind to the change event of jqxRating.

<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>
}

Methods

disable Method
<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) {
instance["disable"]();
}
</script>
}

enable Method
<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) {
instance["enable"]();
}
</script>
}

getValue Method
<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>
}

setValue Method
<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) {
instance["setValue"](20);
}
</script>
}

val Method
<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["val"]();
}
</script>
}