ASP .NET Core MVC Documentation
Getting Started
jqxNotification represents a UI Component which displays an unobtrusive notification to the user. Multiple instances of the same notification can be shown at the same time.Every ASP .NET Core Mvc Tag Helper from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.
jqxNotification requires the following files:
CSS
jqx.base.css
Javascript
jqxcore.js
jqxnotification.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/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxnotification.js"></script>
<jqx-notification append-container="#container">Notification Message</jqx-notification>
To bind to an event of a UI Component, you can use<script src="~/jqwidgets/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxnotification.js"></script>
<jqx-notification instance="getInstance()">Notification Message</jqx-notification>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["closeAll"]();
}
</script>}
on-event-type
syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxnotification.js"></script>
<jqx-notification on-close="eventHandler()">Notification Message</jqx-notification>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}