Skip to main content

Alerts

Attributes

Attribute Description
open (boolean) Initial open/close state of the alert
dismissible (boolean) Allow the alert to be closed

Methods

To access public methods on the element first select it using document.querySelector() .

Method Description
show() Opens the alert
close() Hides the alert
isOpen() Returns true or false