ShowText
methodsDisplays 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:dataObject|String|Function
data.closeButton
typeString
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.
data.closeButton Boоlean If set to false the Notification will not render the close button.
The notification type. Predefined type values include "base", "primary", "secondary", "tertiary", "info", "success", "warning", "error" and "inverse". Custom types should match the types from the template configuration.
If this argument is not supplied, then "base" is assumed.