Yahoo! UI Library

Menu  2.5.2

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

Show Private Show Protected

Class YAHOO.widget.MenuBarItem - extends YAHOO.widget.MenuItem

Creates an item for a menu bar.

Constructor

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

Properties

CSS_CLASS_NAME - final String

String representing the CSS class(es) to be applied to the <li> element of the menu bar item.
Default Value: "yuimenubaritem"

CSS_LABEL_CLASS_NAME - final String

String representing the CSS class(es) to be applied to the menu bar item's <a> element.
Default Value: "yuimenubaritemlabel"

Methods

init

void init ( p_oObject , p_oConfig )
The MenuBarItem 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> String specifying the text of the menu bar item.
p_oObject <HTMLLIElement> Object specifying the <li> element of the menu bar item.
p_oObject <HTMLOptGroupElement> Object specifying the <optgroup> element of the menu bar item.
p_oObject <HTMLOptionElement> Object specifying the <option> element of the menu bar item.
p_oConfig <Object> Optional. Object literal specifying the configuration for the menu bar item. See configuration class documentation for more details.
Returns: void

toString

String toString ( )
Returns a string representing the menu bar item.
Returns: String


Copyright © 2007 Yahoo! Inc. All rights reserved.