You have to write your own CSS to place it, of course I give you a sample to try it
Don't use margins on "notification" element directly, that's why I use a div inside
(and set padding on the parent to simulate a margin)
- Source:
Methods
-
<protected, static> this.bindRemove(id, time)
-
bind the remove function
Parameters:
Name Type Description id
string Is the notification to bind
time
int is the time notification will stay on screen
- Source:
-
<static> this.create(text, expirationTime)
-
Create a notification
Parameters:
Name Type Description text
string The title of the book.
expirationTime
int Optional parameters in milliseconds
- Source:
Example
DE.Notifications.create( "hello world", 1500 );
-
<protected, static> this.init(params)
-
Init Notifications, get template and container in the dom
Parameters:
Name Type Description params
object Optional parameters, you can change all default value (check out the main constructor)
- Source:
-
<protected, static> this.remove(id)
-
remove a notification from dom and object container
Parameters:
Name Type Description id
string Is the notification to remove
- Source:
-
<protected, static> this.triggerRemove(id)
-
launch animation to remove a notification
Parameters:
Name Type Description id
string Is the notification to animate
- Source: