ASP .NET Core MVC Documentation

Getting Started

The jqxCheckBox UI component displays a check box that allows the end-user to select a true, false or indeterminate condition.

Every UI component from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.

Include all required javascript and css files

jqxCheckBox requires the following files:

  • CSS

  • jqx.base.css
  • Javascript

  • jqxcore.js
  • jqxcheckbox.js
The next step is to create html element within the body of the html document and add the initialization attributes.
<script src="~/jqwidgets/jqxcheckbox.js"></script>
<jqx-check-box animation-hide-delay="300">CheckBox</jqx-check-box>
To call a function(method), you need to pass the method name and parameters(if any) in the jqxCheckBox’s instance.
<script src="~/jqwidgets/jqxcheckbox.js"></script>
<jqx-check-box instance="getInstance()">CheckBox</jqx-check-box>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["uncheck"]();
}
</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/jqxcheckbox.js"></script>
<jqx-check-box on-checked="eventHandler()">CheckBox</jqx-check-box>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}

Basic Sample