Open GriffinSauce opened 10 years ago
The callback will be called when the notification has been created, with as parameter the element of the notif.
CommandManager.execute("notifications.notification", { title: "Message title", message: "Message body" callback:function(element){ /* do stuff */ } });
This can be used by the firing script to manipulate the notification afterwards. Like updating information or adding customized interaction.
constructNotification returns the notification object. Maybe having callback isn't necessary anymore.
constructNotification
The callback will be called when the notification has been created, with as parameter the element of the notif.
This can be used by the firing script to manipulate the notification afterwards. Like updating information or adding customized interaction.