ASP .NET Core MVC Documentation
Getting Started
jqxTooltip represents a popup UI component.Every ASP .NET Core Mvc Tag Helper from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.
jqxTooltip requires the following files:
CSS
jqx.base.css
Javascript
jqxcore.js
jqxbuttons.js
jqxscrollbar.js
jqxlistbox.js
jqxTooltip.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/jqxtooltip.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<span id="tooltip">Move cursor here to see the tooltip</span>
<jqx-tool-tip absolute-position-x="20" selector="tooltip"></jqx-tool-tip>
To bind to an event of a UI Component, you can use<script src="~/jqwidgets/jqxtooltip.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<span id="tooltip">Move cursor here to see the tooltip</span>
<jqx-tool-tip instance="getInstance()" selector="tooltip"></jqx-tool-tip>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["close"]();
}</script>}
on-event-type
syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxtooltip.js"></script>
@using jQWidgets.AspNetCore.Mvc.TagHelpers
<span id="tooltip">Move cursor here to see the tooltip</span>
<jqx-tool-tip on-close="eventHandler()" selector="tooltip"></jqx-tool-tip>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>}