Class YAHOO.widget.ContextMenu

Object
   |
   +--YAHOO.widget.Overlay
         |
         +--YAHOO.widget.MenuModule
               |
               +--YAHOO.widget.Menu
                     |
                     +--YAHOO.widget.ContextMenu

class YAHOO.widget.ContextMenu

Field Summary [top]

HTMLElement contextEventTarget
Returns the HTMLElement node that was the target of the "contextmenu" DOM event. 
Object superclass
 

Method Summary [top]

void configTrigger (<String> p_sType, <Array> p_aArguments, <YAHOO.widget.ContextMenu> p_oMenu)
Event handler for when the "trigger" configuration property of a MenuItem instance. 
void init (<String Id or HTMLElement> p_oElement, <Object> p_oUserConfig)
The ContextMenu class's initialization method. 
void initDefaultConfig ()
Initializes the class's configurable properties which can be changed using a ContextMenu instance's Config object (cfg). 

Methods inherited from class YAHOO.widget.Menu

Field Detail [top]

contextEventTarget

HTMLElement   contextEventTarget
Returns the HTMLElement node that was the target of the "contextmenu" DOM event.

superclass

Object   superclass

Constructor Detail [top]

YAHOO.widget.ContextMenu

YAHOO.widget.ContextMenu ()
Parameters:
String - String id or HTMLElement (either HTMLSelectElement or HTMLDivElement) of the source HTMLElement node.
p_oUserConfig - Optional. The configuration object literal containing the configuration for a ContextMenu instance. See configuration class documentation for more details.

Method Detail [top]

configTrigger

void configTrigger (<String> p_sType, <Array> p_aArguments, <YAHOO.widget.ContextMenu> p_oMenu)
Event handler for when the "trigger" configuration property of a MenuItem instance.
Parameters:
p_sType - The name of the event that was fired.
p_aArguments - Collection of arguments sent when the event was fired.
p_oMenu - The ContextMenu that instance fired the event.

init

void init (<String Id or HTMLElement> p_oElement, <Object> p_oUserConfig)
The ContextMenu 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_oElement - String id or HTMLElement (either HTMLSelectElement or HTMLDivElement) of the source HTMLElement node.
p_oUserConfig - Optional. The configuration object literal containing the configuration for a ContextMenu instance. See configuration class documentation for more details.

initDefaultConfig

void initDefaultConfig ()
Initializes the class's configurable properties which can be changed using a ContextMenu instance's Config object (cfg).