Ctrl + K

Alert

import { AXAlertModule } from '@acorex/components/alert';

Alert displays important messages and comes in six types: primary, secondary, success, warning, danger, and info. It can be closed manually, include a footer button, or be positioned inline. You can also set an automatic closing time.

Overview

Congratulations!
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ea maxime quos atque animi reiciendis soluta, fugit exercitationem, sit unde tempore ipsam non nesciunt, nostrum harum rerum saepe? Aperiam, tempore doloremque?
Primary

Usage

A simple example of using ax-alert

placeholder

Inline

In linear mode, you can only use ax-title ,ax-icon , ax-button and ax-close-button tags.

placeholder

Props

colorstringprimarySets the color theme of the alert.
timeOutbooleanfalseSpecifies whether the alert should automatically disappear after a timeout.
titlebooleantrueDetermines whether the alert has a title.
contentbooleantrueSpecifies whether the alert should include content text.
inlineButtonbooleanfalseDetermines whether an inline button is displayed within the alert.
footerButtonbooleantrueSpecifies whether a footer button is included in the alert.
closeButtonbooleanfalseDetermines whether a close button is displayed on the alert.
progressbarbooleanfalseSpecifies whether a progress bar is displayed in the alert.
textstring-Sets the text content of the alert.
lookAXStyleLookTypesolidDetermines the appearance of the alert.

Methods

colorChange

AXStyleColorType

Specifies the function to be called when the color of the alert changes.
onClosed

AXEvent

Specifies the function to be called when the alert is closed.
onOptionChanged

AXOptionChangedEvent

Specifies the function to be called when an option in the alert is changed.