Different closing behaviour for notifications

2 posts, 1 answers
  1. Kaan
    Kaan avatar
    46 posts
    Member since:
    May 2016

    Posted 09 May Link to this post

    Hello!

    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?

    Best regards,

    Kaan

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 10 May Link to this post

    Hello Kaan,

    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.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top