jqxSlider requires the following files:
jqx.base.cssjqxcore.jsjqxbuttons.jsjqxscrollbar.jsjqxlistbox.jsjqxSlider.js<script src="~/jqwidgets/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxslider.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
@{
ViewData["Title"] = "ASP .NET MVC Slider Example";
}
<jqx-slider buttons-position="left"></jqx-slider>
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/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxslider.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
@{
ViewData["Title"] = "ASP .NET MVC Slider Example";
}
<jqx-slider instance="getInstance()"></jqx-slider>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["decrementValue"]();
}
</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/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxslider.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
@{
ViewData["Title"] = "ASP .NET MVC Slider Example";
}
<jqx-slider on-change="eventHandler()"></jqx-slider>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}