Alert
Alert
Import |
Source |
Docs |
When To Use#
- When you need to show alert messages to users.
- When you need a persistent static container which is closable by user actions.
Examples #
Loading...
Loading...
Detailed description and advices about successful copywriting.
Additional description and informations about copywriting.
This is a warning notice about copywriting.
This is an error message about copywriting.
Loading...
Loading...
Detailed description and advices about successful copywriting.
Loading...
Loading...
Loading...
Loading...
Error Description Error Description Error Description Error Description
Info Description Info Description Info Description Info Description
Loading...
API#
nz-alert#
| Property | Description | Type | Default | Global Config |
|---|---|---|---|---|
[nzBanner] | Whether to show as banner | boolean | false | |
[nzAction] | Customized alert's action | string | TemplateRef<void> | - | |
[nzCloseable] | Whether Alert can be closed | boolean | - | ✅ |
[nzCloseText] | Close text to show | string | TemplateRef<void> | - | |
[nzDescription] | Additional content of Alert | string | TemplateRef<void> | - | |
[nzMessage] | Content of Alert | string | TemplateRef<void> | - | |
[nzShowIcon] | Whether to show icon, in nzBanner mode default is true | boolean | false | ✅ |
[nzIconType] | Icon type, effective when nzShowIcon is true | string | - | |
[nzType] | Type of Alert styles, in nzBanner mode default is 'warning' | 'success' | 'info' | 'warning' | 'error' | 'info' | |
[nzIcon] | Custom icon, effective when showIcon is true | string | TemplateRef<void> | - | |
(nzOnClose) | Callback when Alert is closed | EventEmitter<void> | - |