ASP .NET Core MVC Documentation
Getting Started
jqxDateTimeInput represents a DateTimeInput UI component which represents an input field with drop-down calendar with selectable dates.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
jqxDateTimeInput requires the following files:
CSS
jqx.base.css
Javascript
jqxcore.js
globalize.js
jqxcalendar.js
jqxdatetimeinput.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/jqxcalendar.js"></script>
<script src="~/jqwidgets/jqxdatetimeinput.js"></script>
<script src="~/jqwidgets/globalization/globalize.js"></script>
@{
DateTime date = new DateTime(2017, 9, 20);
DateTime min = new DateTime(2002, 9, 20);
DateTime max = new DateTime(2018, 9, 20);
}
<jqx-date-time-input animation-type="fade" width="250" height="30"></jqx-date-time-input>
To bind to an event of a UI Component, you can use<script src="~/jqwidgets/jqxcalendar.js"></script>
<script src="~/jqwidgets/jqxdatetimeinput.js"></script>
<script src="~/jqwidgets/globalization/globalize.js"></script>
@{
DateTime date = new DateTime(2017, 9, 20);
DateTime min = new DateTime(2002, 9, 20);
DateTime max = new DateTime(2018, 9, 20);
}
<jqx-date-time-input width="250" height="30" instance="getInstance()"></jqx-date-time-input>
@section scripts {<script type="text/javascript">function getInstance(instance) {instance["open"]();}</script>}
on-event-type
syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxcalendar.js"></script>
<script src="~/jqwidgets/jqxdatetimeinput.js"></script>
<script src="~/jqwidgets/globalization/globalize.js"></script>
@{
DateTime date = new DateTime(2017, 9, 20);
DateTime min = new DateTime(2002, 9, 20);
DateTime max = new DateTime(2018, 9, 20);
}
<jqx-date-time-input on-change="eventHandler()"></jqx-date-time-input>
@section scripts {<script type="text/javascript">function eventHandler(event) {}</script>}