Notification

Notification

new Notification(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
closeSelectorString

Selector for closing the notification

attachClickListenerBoolean

Whether or not to bind click events

Classes

Notification

Methods

destroy()

Description:
  • Destroy component.

Source:

handleClickOnClose()

Description:
  • Remove the notification component.

Source:

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {Notification}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Notification.

Type
Notification