Notifications

Singleton toast notifications with icon, date, message, color and callback, auto-closing and optional native alerts when unfocused

Live preview

Open in new tab ↗
  • easy usage
  • singleton

Configuration:

  • date {String} a date format (default yyyy-MM-dd HH:mm)
  • timeout {Number} has to contain a timeout (milliseconds) for the expiration of notification (default: 8000)
  • native {Boolean} enables native notifications when is not focused window (default: false)

Methods

  • component.append(icon, message, [datetime], [callback], [color]) for creating a new notification

More UI components

Browse all 348