How can I make info and success notifications disappear automatically after a few seconds, but have warning and error notifications to be closed manually by the user?
3 Answers, 1 is accepted
answered on 10 May 2017, 06:05 AM
The autoHideAfter configuration option is applied to all Notification types, thus we can suggest setting it to 0 (disabling auto-hide) and conditionally hide the Notification depending on its type in the show event handler. Here's a sample dojo, which demonstrates this approach. The info Notification is hidden after 2 seconds, whereas the warning Notification does not auto-hide.