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 (10)

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
__hide()
private function __hide();
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
__select()
private function __select(i);
setDelegate()
public function setDelegate(delegate : LzDelegate);
LzContextMenu.setDelegate Sets the delegate which will be called when the menu is opened
__show()
private function __show();

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 private function __hide ();
  prototype public function hideBuiltInItems ();
  prototype public function initialize (del);
  prototype public function makeMenuItem (title : String, callback : function);
  prototype public event onmenuopen ;
  prototype private function __select (i);
  prototype public function setDelegate (delegate : LzDelegate);
  prototype private function __show ();
}