Rollbase Notifications - Forum - Rollbase - Progress Community

Rollbase Notifications

 Forum

Rollbase Notifications

This question is answered

Hi,

Is there a way to update the default time a notification in Rollbase is hidden?

Regards,

Godfrey

Verified Answer
  • Yes there is.  You have to set the new value in a JavaScript  object like this:

    rb.newui.options.notificationPosition.autoHideAfter = 5000;  // This will set the autohide at 5s.

    Other things you can tailor:

    rb.newui.options = {
    notificationPosition: {
    top: 15,
    bottom: 40,
    left: 15,
    right: 15,
    autoHideAfter: 3500
    }

    Thierry.

    PS: We have lots of options available in rb.newui.options.  Check the file options.js:

    From the doc:

    JavaScript files available in uncompressed format:

    The following JavaScript files are now available in an uncompressed format:

    • Options.js — Contains the default user interface options for the New UI
    • CustomEvents.js — Contains definitions of custom events, event listeners, and event handlers

    If you customize the UI with JavaScript, it will be helpful to review the contents of these files. You can find these files at the following locations:

    • Rollbase Private Cloud: http://localhost:8830/prod1/js/newui/Options.js
    • Hosted Rollbase: https://www.rollbase.com/prod1/js/newui/Options.js.
All Replies
  • Yes there is.  You have to set the new value in a JavaScript  object like this:

    rb.newui.options.notificationPosition.autoHideAfter = 5000;  // This will set the autohide at 5s.

    Other things you can tailor:

    rb.newui.options = {
    notificationPosition: {
    top: 15,
    bottom: 40,
    left: 15,
    right: 15,
    autoHideAfter: 3500
    }

    Thierry.

    PS: We have lots of options available in rb.newui.options.  Check the file options.js:

    From the doc:

    JavaScript files available in uncompressed format:

    The following JavaScript files are now available in an uncompressed format:

    • Options.js — Contains the default user interface options for the New UI
    • CustomEvents.js — Contains definitions of custom events, event listeners, and event handlers

    If you customize the UI with JavaScript, it will be helpful to review the contents of these files. You can find these files at the following locations:

    • Rollbase Private Cloud: http://localhost:8830/prod1/js/newui/Options.js
    • Hosted Rollbase: https://www.rollbase.com/prod1/js/newui/Options.js.