Methods
-
dismiss(notification, erroropt, successopt)
-
A request to dismiss the given notification, removing it from the user's list of notifications.
If the request is successful, a REMOVED event will be raised (see
module:caplin/alerts/NotificationServiceEvents
).Parameters:
Name Type Attributes Description notification
module:caplin/alerts/Notification The notification to dismiss. error
function <optional>
A callback that will be invoked if the request fails. success
function <optional>
A callback that will be invoked when the request succeeds.