Class: NotificationManager

NotificationManager()

Notification Manager - Handles user notifications and messages

Constructor

new NotificationManager()

Source:

Methods

clearAll()

Clear all notifications

Source:

showConfirmDialog(message, title) → {Promise.<boolean>}

Show confirmation dialog

Parameters:
Name Type Default Description
message string

Message to display

title string Confirm

Dialog title

Source:
Returns:
  • User confirmation
Type
Promise.<boolean>

showEncodingWarningDialog() → {Promise.<string>}

Show encoding warning dialog

Source:
Returns:
  • User choice ('yes' or 'no')
Type
Promise.<string>

showError(message)

Show error notification

Parameters:
Name Type Description
message string

Message to display

Source:

showInfo(message)

Show info notification

Parameters:
Name Type Description
message string

Message to display

Source:

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)

Source:

showSuccess(message)

Show success notification

Parameters:
Name Type Description
message string

Message to display

Source:

showWarning(message)

Show warning notification

Parameters:
Name Type Description
message string

Message to display

Source: