@elemental/ui / Class

LmnAlertService

Decorators:@Injectable

No documentation has been provided.

Methods

dispatch()

Add a alertText in a #lmn-alert-element element. This element has a role="alert" and aria-live based on the input {politenessSetting}, the default value is assertive. The content of the #lmn-alert-element element will be read as soon as possible by the assistive technologies

Presentation
dispatch(alertText: string, duration: number = 5000, politenessSetting: LmnAriaLive = 'assertive'): void;
Parameters
NameTypeDescription
alertText
string

@param alertText

duration
number

@param duration

politenessSetting
LmnAriaLive

@param politenessSetting

Returns
void