notifications
Instance to display notifications in Dashboard with custom levels
notification parameters:
name | type | default | description |
message | string | "" | Message of the notification |
level | string | "info" | Level of the notification. Available: |
autoDismiss | int | 0 | Delay in seconds for the notification go away. |
uuid | int/string | null | Notification won't be displayed without a uuid. Notifications with same uuid won't be displayed. |
How to use
add
add confirm notifications
You can send a confirm notification with add method
Confirm item:
name | type | default | description |
message | string | null | Message of the notification |
buttonTexts | array |
| Confirm buttons texts, first item take the cancel text and the second takes the confirm text |
onConfirm | function | null | callback function will be called on confirm |
onCancel | function | null | callback function will be called on cancel |
remove
By passing the same "notification" object that you want to remove, or by passing the uuid
Last updated