Yahoo! UI Library

Menu  2.5.2

Yahoo! UI Library > menu > YAHOO.widget.ContextMenuItem

Show Private Show Protected

Class YAHOO.widget.ContextMenuItem - extends YAHOO.widget.MenuItem

Deprecated: As of version 2.4.0 items for YAHOO.widget.ContextMenu instances are of type YAHOO.widget.MenuItem.
Creates an item for a context menu.

Constructor

YAHOO.widget.ContextMenuItem ( p_oObject , p_oConfig )
Parameters:
p_oObject <String> String specifying the text of the context menu item.
p_oObject <HTMLLIElement> Object specifying the <li> element of the context menu item.
p_oObject <HTMLOptGroupElement> Object specifying the <optgroup> element of the context menu item.
p_oObject <HTMLOptionElement> Object specifying the <option> element of the context menu item.
p_oConfig <Object> Optional. Object literal specifying the configuration for the context menu item. See configuration class documentation for more details.

Copyright © 2007 Yahoo! Inc. All rights reserved.