Blaze UI Alerts Attributes
Blaze UI allows showing the alert messages on the website using predefined classes. These alerts can be used to show the messages regarding the website such as errors, and success messages.
There are two attributes offered by Blaze UI alert:
- open: open/close the state of the alert, initially it is set to open. The type of this attribute is boolean.
- dismissible: Allow the alert to be closed. The type of this attribute is boolean.
Blaze-UI Alert Class:
- blaze-alert: This class is used to add the alert message.
<blaze-alert open dismissible ...> ... </blaze-alert>
Example 1: The following code demonstrates the Blaze UI alerts open attribute.
Example 2: The following code demonstrates the Blaze UI alerts dismissible attribute. The dismissible attribute adds the close option at the corner of the alert.
Please Login to comment...