ASP .NET Core MVC Documentation
Getting Started
jqxButton represents a Button UI component. It can easily be used to display a regular button, button with text and image or a button with image. jqxToggleButton represents a button with two states - checked and unchecked. jqxRepeatButton represents a button tag helper which raises repeating click events when you click on it.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
jqxButton requires the following files:
CSS
jqx.base.css
Javascript
jqxcore.js
jqxbuttons.js
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-button disabled="true">Button</jqx-button>
To call a function(method), you need to pass the method name and parameters(if any) in the jqxBulletChart’s instance.
To bind to an event of a UI widget, you can use<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-toggle-button instance="getInstance()">Button</jqx-toggle-button>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["unCheck"]();
}
</script>
}
on-event-type
syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-button on-click="eventHandler()">Button</jqx-button>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}