Usage: new ludo.Notification({ ... });
Extends: ludo.View
Class for providing short messages and feedback in a popup.
Notifications automatically disappear after a timeout. Positioning
of notification can be configured using the layout object.
Custom CSS styling can be done by adding styles to the .ludo-notification class.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
- Source:
Example
new ludo.Notification({ html : 'Your e-mail has been sent', // message duration:4 // Hidden after 4 seconds }); new ludo.Notification({ html: 'Hello there!', layout:{ // Position right of other view rightOf:'idOfOtherView', alignTop:'idOfOtherView' }, autoRemove:true // Automatically remove from DOM when hidden });