Class YAHOO.widget.MenuItem

Object
   |
   +--YAHOO.widget.MenuModuleItem
         |
         +--YAHOO.widget.MenuItem
Direct Known Subclasses:
YAHOO.widget.ContextMenuItem

class YAHOO.widget.MenuItem

Method Summary [top]

void init (<String or HTMLElement> p_oObject, <Object> p_oUserConfig)
The MenuItem class's initialization method. 

Field Detail [top]

superclass

Object   superclass

Constructor Detail [top]

YAHOO.widget.MenuItem

YAHOO.widget.MenuItem ()
Parameters:
p_oObject - String or HTMLElement (either HTMLLIElement, HTMLOptGroupElement or HTMLOptionElement) of the source HTMLElement node.
p_oUserConfig - The configuration object literal containing the configuration for a MenuItem instance. See the configuration class documentation for more details.

Method Detail [top]

init

void init (<String or HTMLElement> p_oObject, <Object> p_oUserConfig)
The MenuItem class's initialization method. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
Parameters:
p_oObject - String or HTMLElement (either HTMLLIElement, HTMLOptGroupElement or HTMLOptionElement) of the source HTMLElement node.
p_oUserConfig - The configuration object literal containing the configuration for a MenuItem instance. See the configuration class documentation for more details.