message Function

Registers a message to be displayed to the user. If the messages have not been previously rendered the message will not display.

Summary

ElementFunction
ReturnsObject

Arguments

messageString[required] The text to display to the user.
typeStringThe type of error, added as a CSS class named "pagetype-message-%TYPE%".

Example

PageType.message('Could not save data',PageType.ERROR);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php