Notification

Notification

new Notification(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
closeSelector String

Selector for closing the notification

attachClickListener Boolean

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:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Notification.

Type
Notification