API Reference
ShowNotification(data)
Displays a new notification.
Parameters:
data(table):title(string): The title of the notification.message(string): The main content of the notification.type(string): The type of notification (SUCCESS, ERROR, INFO, WARNING).duration(number): How long the notification should be displayed (in ms).action(string, optional): A unique identifier for the action button.actionLabel(string, optional): The text to display on the action button.
Returns:
id(number): A unique identifier for the created notification.
RemoveNotification(id)
Removes a specific notification.
Parameters:
id(number): The unique identifier of the notification to remove.
Last updated