Namespace: Notifications

Notifications

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)

Author:
  • Inateno
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:
Dreamirl Copyright © 2014 And the contributors
Documentation generated by JSDoc 3.2.2 on Thu Apr 24 2014 11:56:41 GMT+0200 (CEST) using the DocStrap template.