menu Function

Returns the specified menu and executes the callback. The callback should recieve the argument "data", which contains the response body in "data.content".

Summary

ElementFunction
ReturnsObject

Arguments

nameString[required] The name of the menu.
callbackFunction[required] The callback function.

Example

PageType.menu('main',callback);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php