Core Attributes
Core Inputs
| Argument | Type | Description | Default Value |
| startVisible | boolean | Set whether the component is visible since its creation or not. | false |
Core Outputs
| Argument | Type | Description | Default Value |
| onShow | EventEmitter<void> | Define a certain behaviour to take place whenever the component is shown. | EventEmitter<void>() (no behaviour) |
| onHide | EventEmitter<void> | Define a certain behaviour to take place whenever the component is hidden. | EventEmitter<void>() (no behaviour) |
Theme Attributes
Theme Inputs
| Argument | Type | Description | Default Value |
| style | string | Alert color style. See available styles at Bootstrap documentation. | null (no style) |
| showCloseButton | boolean | Display a button to close the alert. | null (no button) |
Code Example
<bs-alert #alert
[style]="'warning'"
[showCloseButton]="true">
Alert {{options | json}}
</bs-alert>