interface AlertsApi { configure(config: AlertsConfig): void; dismiss(id: string): void; error(text: string,
config?: AlertConfig): Alert; info(text: string,
config?: AlertConfig): Alert; update(id: string,
text: string): void; warn(text: string,
config?: AlertConfig): Alert; } Methods
configure
- configure(config): void
Returns void
dismiss
- dismiss(id): void
Returns void
error
- error(text, config?): Alert
Parameters
- text: string
Optional
config: AlertConfig
Returns Alert
the created alert
info
- info(text, config?): Alert
Parameters
- text: string
Optional
config: AlertConfig
Returns Alert
the created alert
update
- update(id, text): void
Returns void
warn
- warn(text, config?): Alert
Parameters
- text: string
Optional
config: AlertConfig
Returns Alert
the created alert
set configuration for the alerts component