message/src/message/message.component.ts
Displays a user message with an icon and a text. Comes in diferent flavours, sizes and styles.
Basic usage:
Example :<talenra-message text="My user message"></talenra-message>Formatted content:
Example :<talenra-message level="success"><strong>Congrats!</strong> You made it.</talenra-message>import { MessageComponent } from '@talenra/components/message';
| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | talenra-message |
| imports |
IconComponent
ButtonComponent
CopyContentButtonComponent
|
| styleUrls | ./message.component.scss |
| templateUrl | ./message.component.html |
Inputs |
Outputs |
| description |
Type : string
|
Default value : ''
|
|
Optional description displayed in accordion. Description is hidden by default and can by expanded by the user. It is typically used to give the user extra information. Use description to keep the message text concise without compromising content. Example : |
| identifier |
Type : string
|
Default value : ''
|
|
Unique identifier provided by the parent component. Used to track the message in environments with multiple Message instances. If you rely on a single/static Message instance or if you do not allow users do dismiss messages (using the
|
| kind |
Type : TMessageKind
|
Default value : MessageKind.Default
|
|
Kind of the message displayed. Determinates the style of the Message. Example : |
| level |
Type : TMessageLevel
|
Default value : MessageLevel.Info
|
|
Defines the message level: info (default), error, success or warning. Example : |
| size |
Type : TMessageSize
|
Default value : MessageSize.M
|
|
Size of the message displayed. Example : |
| text |
Type : string
|
Default value : ''
|
|
Message text displayed to the user. Example : |
| removeMessage |
Type : MessageRemove
|
|
Event emitted when Message is removed. Removal is triggered if the user dismisses the message, after the fade-out animation is completed. Returns a reference to the emitting Message instance and its identifier (if provided). Example :See MessageRemove |