Notification - PIWEEK/polymux GitHub Wiki
A notification message component on the top of the screen. Is commonly used for flash messaging the users about the status of an action.
<polymux-notification display="visible" message="my-message"></polymux-notification>
A polymux-notification component can accept two properties:
-
Message (optional): We can set a default message for
-
level The type of notification
- Success: It will show a success notification
- Warning: It will show a warning notification
- Error: It will show an error notification
-
Display (optional): If set to visible it will show the notification message on page load.
Loading polymux-notification from other components
A notification alert can be toggled from other components since it can receive notifications. This component accept the following parameters:
Level: The notification will set the notification color and type. Notify-message: The message displayed in the notification.