Class: Message

Message

Methods

(static) error(text, opt_lifetimeopt, opt_dismissableopt) → (non-null) {up.api.common.Message}

Display an error message.
Parameters:
Name Type Attributes Description
text string The message to display
opt_lifetime number <optional>
How long to display the message. Defaults to indefinitely.
opt_dismissable boolean <optional>
Whether to give a close button. Defaults to true.
Returns:
The message.
Type
up.api.common.Message

(static) info(text, opt_lifetimeopt, opt_dismissableopt) → (non-null) {up.api.common.Message}

Display an info message.
Parameters:
Name Type Attributes Description
text string The message to display
opt_lifetime number <optional>
How long to display the message. Defaults to indefinitely.
opt_dismissable boolean <optional>
Whether to give a close button. Defaults to true.
Returns:
The message.
Type
up.api.common.Message

(static) warning(text, opt_lifetimeopt, opt_dismissableopt) → (non-null) {up.api.common.Message}

Display a warning message.
Parameters:
Name Type Attributes Description
text string The message to display
opt_lifetime number <optional>
How long to display the message. Defaults to indefinitely.
opt_dismissable boolean <optional>
Whether to give a close button. Defaults to true.
Returns:
The message.
Type
up.api.common.Message