ASP .NET Core MVC Documentation
Getting Started
jqxColorPicker represents a ColorPicker UI component that allows you to easily pick a color. You can configure the jqxColorPicker's color mode, input a color in hex or rgb format.Every ASP .NET Core Mvc Tag Helper from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.
Include all required javascript and css files
jqxColorPicker requires the following files:
CSS
jqx.base.css
Javascript
jqxcore.js
jqxcolorpicker.js
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/jqxcolorpicker.js"></script>
<jqx-color-picker color-mode="hue" width="250" height="250"></jqx-color-picker>
To bind to an event of a UI Component, you can use<script src="~/jqwidgets/jqxcolorpicker.js"></script>
<jqx-color-picker width="250" height="250" instance="getInstance()"></jqx-color-picker>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
var result = instance["getColor"]();
}
</script>
}
on-event-type
syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxcolorpicker.js"></script>
<jqx-color-picker on-colorchange="eventHandler()"></jqx-color-picker>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}