Name
LzContextMenu (dhtml) — A contextual menu
Description
The LzContextMenu
represents a context (right-click) menu.
Details
Properties (1)
-
showbuiltins
-
public var showbuiltins = false;
Methods (7)
-
addItem()
-
public function addItem(item : LzContextMenuItem);
LzContextMenu.addItem
Adds a menu items into a menu
-
clearItems()
-
public function clearItems();
LzContextMenu.clearItems
Remove all custom items from a menu
-
getItems()
-
public function getItems();
LzContextMenu.getItems
Return list of custom items
-
hideBuiltInItems()
-
public function hideBuiltInItems();
LzContextMenu.hideBuiltInItems
-
initialize()
-
public function initialize(del);
-
makeMenuItem()
-
public function makeMenuItem(title : String, callback : function);
LzContextMenu.makeMenuItem
create a new menu item for a LzContextMenu
-
setDelegate()
-
public function setDelegate(delegate : LzDelegate);
LzContextMenu.setDelegate
Sets the delegate which will be called when the menu is opened
JavaScript Synopsis
public
LzContextMenu extends
LzNode
{
prototype public function
addItem
(
item : LzContextMenuItem);
prototype public function
makeMenuItem
(
title : String,
callback : function);
prototype public function
setDelegate
(
delegate : LzDelegate);
}