Class Index

Classes


Namespace wptheme.contextMenu

Namespace Summary
Constructor Attributes Constructor Name and Description
 
The static class used for all simple context menu related operations.
Method Summary
Method Attributes Method Name and Description
<static>  
wptheme.contextMenu.init(jsonObject)
Initializes a context menu for the specified node using the provided menuId.
Namespace Detail
wptheme.contextMenu
The static class used for all simple context menu related operations.
Method Detail
<static> wptheme.contextMenu.init(jsonObject)
Initializes a context menu for the specified node using the provided menuId.
Parameters:
{JSON} jsonObject
an object to pass the parameters
{DOMNode} jsonObject.node
the node to create the menu for
{String} jsonObject.menuId
the id of the menu to create for the node
{function} jsonObject.onClose Optional
A callback handler that notifies the caller when the menu is closed
{JSON} jsonObject.params Optional
JSON type object that to finer configure the menu
{String} jsonObject.params.templateId
defines a DOM node id for a template that should be used rather than the default template
{String} jsonObject.params.alignment
defines the alignment of the menu, can be either 'left' (default) or 'right'.
{JSON} jsonObject.jsonQuery Optional
an additional parameter that allows to provide arbitrary query parameters that will be sent to the backend. Can be null

Copyright (c) 2014 IBM Corporation
Documentation generated by JsDoc Toolkit 2.4.0 on Fri Jan 12 2024 10:11:11 GMT-0000 (UTC)