ASP .NET Core MVC Documentation

Getting Started

jqxNumberInput represents a NumberInput UI component that contains an input field with spin buttons. The component's purpose is to make numbers edit easier.

Every ASP .NET Core Mvc Tag Helper from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.

jqxNumberInput requires the following files:

  • CSS

  • jqx.base.css
  • Javascript

  • jqxcore.js
  • jqxbuttons.js
  • jqxscrollbar.js
  • jqxlistbox.js
  • jqxNumberInput.js
The next step is to create html element within the body of the html document and add the initialization attributes.
<script src="~/jqwidgets/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxnumberinput.js"></script>
<jqx-number-input allow-null="true"></jqx-number-input>
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/jqxnumberinput.js"></script>
<jqx-number-input instance="getInstance()"></jqx-number-input>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["clear"]();
}
</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/jqxnumberinput.js"></script>
<jqx-number-input on-change="eventHandler()"></jqx-number-input>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}

Basic Sample