| 2BA | My
Notifications
We have both client-side and server-side notification variants available. The following is an example of a client-side notification:
Client-side Notification
In the global.js file, a simple function is available. You can call it as follows:
$.global.AddNotification({type}, {title}, {text});
{type} | The color of the message, options: success, danger, warning, info. |
{title} | The large text at the top of the notification. Note: length is limited. |
{text} | The text in the notification. |
Server-side Notification
In the base controller, a function is included to display a notification after an MVC action. For example, a success message after executing an update query.
In a controller, you can use the following function:
AddNotification(NotificationType.{type}, {title}, {text});
{type} | The color of the message, options: Success, Danger, Warning, Info. |
{title} | The large text at the top of the notification. Note: length is limited. |
{text} | The text in the notification. |