core/dynamic-component/dynamic-component-alert-aggregator.ts
Properties |
Methods |
constructor(alerts: DynamicComponentAlert[])
|
||||||
Parameters :
|
alertGroups |
Type : Array<literal type>
|
Array containing grouped alerts with data necessary to display alerts and whether alert group should be dismissible. |
anyAlertExists$ |
Type : Observable<boolean>
|
addAlerts | ||||||||
addAlerts(alerts: DynamicComponentAlert[])
|
||||||||
Adds alert to aggregator.
Parameters :
Returns :
void
|
clear | ||||||||
clear(type?: AlertType)
|
||||||||
Remove alerts in group by provided alert type or removes all alerts when no param is provided.
Parameters :
Returns :
void
|
dismissAlertGroup | |||||||||||||||
dismissAlertGroup(alertType: AlertType, isPermanent)
|
|||||||||||||||
Removes alerts in group due to dismissal dismissStrategy and sets userDismissalChoice property. If group has dismissal strategy declared as TEMPORARY_OR_PERMANENT, its userDismissalChoice property can be set to REMIND_ALLOWED or REMIND_DISALLOWED depending on parameter.
Parameters :
Returns :
void
|
setAlertGroupDismissStrategy | ||||||||||||
setAlertGroupDismissStrategy(alertType: AlertType, dismissStrategy: DismissAlertStrategy)
|
||||||||||||
Sets possibility of alert to be dismissed in specific way.
Parameters :
Returns :
void
|
toJSON |
toJSON()
|
Alert aggregator as a widget property should not be serialized and stored in database.
Returns :
any
|