showMessage

Displays a message to the user.

Parameters

  1. messageOptions- This is a json object with the message parameters:

    • content - this is the message Text

    • title - (optional) id of the record to load in the new app

    • timeout - (optional) a timeout in milliseconds. The message will disappear after this timeout. No timeout by default.

    • "mode" - (optional) will start in a modal overlay window (default),

      • "big" - (default) a small box in the lowerright corner of the page

      • "small" - a small box in the upper right corner of the page

    • icon - (optional) a icon class string (default: "fa fa-bell swing animated")

    • sound - (optional) play a sound (true) or no (false = default)

    • type - (optional) PReset color scheme. You can use all the button types (danger, success, warning...)

    • buttons - (optional, only for mode "big") You can add buttons to the message. Just provide a list with each button in square brackets (e.g. "[Yes][No][Cancel]"). For more details please check the examples.

    • callback - (optional, only for mode "big") If u provide more than one button the callback option is needed to distinguish which action needs to be taken for a button. For more details please check the examples.

Example Usages

Most simple message

   brixxApi.showMessage({content: "Message Text" });

using additional options

message with buttons

message with buttons, timeout and changing the layout of the message after it was created

Last updated