Rollbase Notifications

Posted by Godfrey Sorita on 28-Jun-2017 08:24

Hi,

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

Regards,

Godfrey

Posted by Thierry Ciot on 28-Jun-2017 20:44

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

Posted by Thierry Ciot on 28-Jun-2017 20:44

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.

This thread is closed