Properties
| Name | Attribute | Type | Description |
|---|---|---|---|
| status | status | |
The alert status (Defaults to 'none'). |
| message | message | |
The alert header message. |
| headerAlign | header-align | |
Header content horizontal alignment: - left Align header to the left.- center Align header to the center. (Default)- right Align header to the right. |
| description | description | |
The alert detail message. |
| descriptionAlign | description-align | |
Description content horizontal alignment: - left Align description content to the left.- center Align description content to the center. (Default)- right Align description content to the right. |
| primaryAction | primary-action | |
The primary action button label (Defaults to 'Ok'). |
| secondaryAction | secondary-action | |
The secondary action button label (Defaults to 'Cancel'). |
| enableSecondary | enable-secondary | |
If true, will provide a secondary action button. |
| actionAlign | action-align | |
Action button(s) horizontal alignment: - left Align action button(s) to the left.- center Align action button(s) to the center.- right Align action button(s) to the right. (Default)- stretch Align action button(s) stretched to fill the horizontal space. |
| dir | dir | |
Used to set the base direction of text for display |
| lang | lang | |
Used to identify the language of text content on the web |
Instance Functions
| Name | Parameters | Returns | Description |
|---|---|---|---|
| showAsync | |
|
Show the omni-alert asynchronously, waits for it to close and returns the reason for close. |
| show | |
|
Show the omni-alert. |
| hide | |
|
Hide the omni-alert and remove the component from the DOM |
Static Functions
| Name | Parameters | Returns | Description |
|---|---|---|---|
| create | |
|
Create a global omni-alert element without showing it. |
| show | |
|
Show a global omni-alert element. |
| showAsync | |
|
Show a global omni-alert element asynchronously, waits for it to close and returns the reason for close. |
Events
| Name | Type | Description |
|---|---|---|
| alert-close | |
Dispatched when the alert is closed. |
| alert-action-click | |
Dispatched when an alert action button is clicked. |
Types
| Name | Type |
|---|---|
| AlertInit | |
Slots
| Name | Description |
|---|---|
|
Used to define content that is displayed while async rendering is awaiting, or when renderLoading() is implicitly called |
|
Content to render as the status indicator instead of default status icons. |
|
Content to render inside the component message area. |
|
Content to render inside the component description body. |
|
Content to render as the primary action button. |
|
Content to render as the secondary action button. |
Theme Variables
| Name | Description |
|---|---|
|
Theme primary color. |
|
Theme primary hover color. |
|
Theme primary active color. |
|
Theme accent color. |
|
Theme accent hover color. |
|
Theme accent active color. |
|
Theme background color. |
|
Theme background hover color. |
|
Theme background active color. |
|
Theme font color. |
|
Theme disabled border color. |
|
Theme disabled background color. |
|
Theme disabled background color. |
|
Theme error border color. |
|
Theme hint font color. |
|
Theme inactive color. |
|
Theme inactive color. |
|
Theme font family. |
|
Theme font size. |
|
Theme font weight. |
|
Theme border radius. |
|
Theme border width. |
|
Theme box shadow. |
Component Variables
| Name | Description |
|---|---|
|
Minimum width for alert. |
|
Maximum width for alert. |
|
Alert border. |
|
Alert border radius. |
|
Alert box shadow. |
|
Alert fade in and out animation duration. |
|
Alert content top padding. |
|
Alert content bottom padding. |
|
Alert content left padding. |
|
Alert content right padding. |
|
Alert header font color. |
|
Alert header font family. |
|
Alert header font size. |
|
Alert header font weight. |
|
Alert header line height. |
|
Alert header background. |
|
Alert header top padding. |
|
Alert header bottom padding. |
|
Alert header left padding. |
|
Alert header right padding. |
|
Alert description font color. |
|
Alert description font family. |
|
Alert description font size. |
|
Alert description font weight. |
|
Alert description line height. |
|
Alert description top padding. |
|
Alert description bottom padding. |
|
Alert description left padding. |
|
Alert description right padding. |
|
Alert actions part top padding. |
|
Alert actions part bottom padding. |
|
Alert actions part left padding. |
|
Alert actions part right padding. |
|
Alert action button(s) top padding. |
|
Alert action button(s) bottom padding. |
|
Alert action button(s) left padding. |
|
Alert action button(s) right padding. |
|
Alert action button(s) internal top padding. |
|
Alert action button(s) internal bottom padding. |
|
Alert action button(s) internal left padding. |
|
Alert action button(s) internal right padding. |
|
Alert header horizontal space between status indicator and header content. |
|
Alert header status indicator symmetrical size. |