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: AlertsConfig): void
Returns void
dismiss
- dismiss(id: string): void
Returns void
error
- error(text: string, config?: AlertConfig): Alert
Parameters
- text: string
Optional
config: AlertConfig
Returns Alert
the created alert
info
- info(text: string, config?: AlertConfig): Alert
Parameters
- text: string
Optional
config: AlertConfig
Returns Alert
the created alert
update
- update(id: string, text: string): void
Returns void
warn
- warn(text: string, config?: AlertConfig): Alert
Parameters
- text: string
Optional
config: AlertConfig
Returns Alert
the created alert
set configuration for the alerts component