Methods
clearAll()
Clear all notifications
showConfirmDialog(message, title) → {Promise.<boolean>}
Show confirmation dialog
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
message |
string | Message to display |
|
title |
string | Confirm | Dialog title |
Returns:
- User confirmation
- Type
- Promise.<boolean>
showEncodingWarningDialog() → {Promise.<string>}
Show encoding warning dialog
Returns:
- User choice ('yes' or 'no')
- Type
- Promise.<string>
showError(message)
Show error notification
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Message to display |
showInfo(message)
Show info notification
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Message to display |
showNotification(message, type, duration)
Show notification
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
message |
string | Message to display |
|
type |
string | info | Notification type (success, error, info, warning) |
duration |
number | 4000 | Duration in milliseconds (default 4000) |
showSuccess(message)
Show success notification
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Message to display |
showWarning(message)
Show warning notification
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Message to display |