Name

LzContextMenu (dhtml) — A contextual menu

Synopsis

JavaScript: LzContextMenu
Type: Class
Access: public
Runtimes: dhtml
Topic: LFC.Views
Declared in: WEB-INF/lps/lfc/kernel/dhtml/LzContextMenu.js

Description

The LzContextMenu represents a context (right-click) menu.

Superclass Chain

node (LzNode) » LzContextMenu

Known Subclasses

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

Events (1)

onmenuopen
public event onmenuopen;

JavaScript Synopsis

public LzContextMenu extends  LzNode  {
  public var showbuiltins  = false;
  prototype public function addItem (item : LzContextMenuItem);
  prototype public function clearItems ();
  prototype public function getItems ();
  prototype public function hideBuiltInItems ();
  prototype public function initialize (del);
  prototype public function makeMenuItem (title : String, callback : function);
  prototype public event onmenuopen ;
  prototype public function setDelegate (delegate : LzDelegate);
}