Alternative syntax of addNotification function.
SyntaxArguments
params
array with parameters. Corresponds to parameters of addNotification function.
params["message"] - message
params["title"] - notification title
params["icon"] - icon
params["url"] - URL
params["expire"] - expiration datetime or time in minutes
params["user"] - user
params["provider"] - security provider
Return value
No return value
Example
This example shows how to add a notification for all users when a new record added to the Categories table. This code needs to be added to AfterAdd event of the Categories table.
See also: