packages/eui/packages/components/eui-alert/eui-alert.component.ts
Alert displays a short, important message to attract the user's attention without interrupting its task.
OnInit
changeDetection | ChangeDetectionStrategy.OnPush |
HostDirectives |
BaseStatesDirective
Inputs : euiSuccess euiInfo euiWarning euiDanger euiVariant
|
selector | div[euiAlert], eui-alert |
imports |
NgTemplateOutlet
EUI_ICON_BUTTON
EUI_ICON_STATE
|
templateUrl | ./eui-alert.component.html |
styleUrl | ./eui-alert.scss |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
ariaDescribedBy |
Type : string
|
Sets the |
e2eAttr |
Type : string
|
Default value : 'eui-alert'
|
Sets the |
isBordered |
Type : boolean
|
Default value : false
|
Removes the left border and icon from the alert. |
isCloseable |
Type : boolean
|
Default value : false
|
Allows the alert to be closed by the user. |
isFocusable |
Type : boolean
|
Default value : false
|
Allows the alert to be focused by the user. |
isMuted |
Type : boolean
|
Default value : false
|
Removes the left border and icon from the alert. |
isVisible |
Type : boolean
|
Default value : true
|
Controls the visibility of the alert. Default: true |
closeAlert |
Type : EventEmitter
|
Event emitted when the alert is closed. |
attr.role |
Type : string
|
Default value : 'alert'
|
Sets the |
attr.tabindex |
Type : string
|
Sets the |
class |
Type : string
|
onCloseClick |
onCloseClick()
|
Hide the alert and emits the
Returns :
void
|
alertIconFillColor |
It is not being used in the component. |
Type : string
|
alertIconType |
It is not being used in the component. |
Type : string
|
alertTitle |
Type : QueryList<EuiAlertTitleComponent>
|
Decorators :
@ContentChild(undefined, {static: false})
|
Content for the alert title given by |
baseStatesDirective |
Default value : inject(BaseStatesDirective)
|
role |
Type : string
|
Default value : 'alert'
|
Decorators :
@HostBinding('attr.role')
|
Sets the |
cssClasses |
getcssClasses()
|
Computes and returns the CSS classes for the component based on its current state.
Returns :
string
|
ariaDescribedBy |
getariaDescribedBy()
|
Sets the
Returns :
string
|
tabindex |
gettabindex()
|
Sets the
Returns :
string
|