Notifications API

editor.showNotification(text, icon, group, duration)
  • text - the text of the notification
  • icon - the icon (from editor.icons.*) to be shown next to the text (optional)
  • group - the group name of this notification, it will override any current notification shown for this group (optional)
  • duration - duration in seconds to show the notification, otherwise a default value will be used (optional)

Add a new notification to the queue. It will override any notification in the same group (if present).

Last modified: 7 December 2021, at 14:30

Any further questions?

Join our discord