Notifier Class
Display a notification. This is the constructor for the notifier widget.
Item Index
Methods
Attributes
Methods
_renderBox
-
parentNode
Attach the widget bounding box to the DOM. Override to insert new instances before existing ones. This way new notification are displayed on top of the page. The resulting rendering process is also very simplified.
Parameters:
-
parentNodeY.Node objectThe node containing this widget.
Returns:
bindUI
()
Undefined
Attach event listeners which bind the UI to the widget state. The mouse enter event on a notification node pauses the timer. The mouse click event on a notification destroys the widget.
Returns:
hideAndDestroy
()
Undefined
Hide this widget using an animation and destroy the widget at the end.
Returns:
renderUI
()
Create the nodes required by this widget and attach them to the DOM.
renderUI
()
Undefined
Create the nodes required by this widget and attach them to the DOM.
Returns:
syncUI
()
Undefined
Create and start the timer that will destroy the widget after N seconds.
