showText

Displays a plain-text notification.

This is a safer version of the show method that assumes that you want to encode any markup passed in as a message.

Parameters

data Object|String|Function

Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.

type String

The notification type. Built-in types include "info", "success", "warning" and "error". Custom types should match the types from the template configuration. If this argument is not supplied, then "info" is assumed.

Example - Use the showText method to display a string

Example - Use the show method and return the message from a function

showText
Not finding the help you need?
Contact Support