1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>API: menu YAHOO.widget.MenuBarItem (YUI Library)
</title>
5 <link rel=
"stylesheet" type=
"text/css" href=
"assets/api.css">
9 <div id=
"doc3" class=
"yui-t2">
12 <h1>Yahoo! UI Library
</h1>
13 <h3>Menu
<span class=
"subtitle">2.2.0</span></h3>
15 <a href=
"./index.html">Yahoo! UI Library
</a>
16 > <a href=
"./module_menu.html">menu
</a>
17 > YAHOO.widget.MenuBarItem
32 Class
<b>YAHOO.widget.MenuBarItem
</b>
33 <span class=
"extends">
34 - extends
<a href=
"YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem
</a>
37 <span class=
"extends">
42 <!-- class tree goes here -->
47 <div class=
"summary description">
48 Creates an item for a menu bar.
51 <div class=
"section constructor details">
52 <h3><a name=
"constructor_detail">Constructor
</a></h3>
55 <strong>YAHOO.widget.MenuBarItem
</strong>
70 <div class=
"description">
77 String specifying the text of the menu bar item.
81 <<a href=
"http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
82 one-html.html#ID-74680021">HTMLLIElement
</a>>
85 <code><li
></code> element of the menu bar item.
89 <<a href=
"http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
90 one-html.html#ID-38450247">HTMLOptGroupElement
</a>>
93 specifying the
<code><optgroup
></code> element of the menu bar item.
97 <<a href=
"http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
98 one-html.html#ID-70901257">HTMLOptionElement
</a>>
101 the
<code><option
></code> element of the menu bar item.
107 Optional. Object literal specifying the
108 configuration for the menu bar item. See configuration class documentation
119 <div class=
"section field details">
120 <h3><a name=
"field_detail">Properties
</a></h3>
121 <div class=
"content">
122 <h4><a name=
"CSS_CLASS_NAME">CSS_CLASS_NAME
</a>
123 <code>- final String
</code>
126 <div class=
"description">
127 String representing the CSS class(es) to be applied to the
128 <code><li
></code> element of the menu bar item.
133 <div class=
"default">
134 Default Value:
"yuimenubaritem"
144 <div class=
"section field inheritance">
145 <h4>Properties inherited from
<a href=
"YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem
</a>:
</h4>
146 <div class=
"content">
149 <a href=
"YAHOO.widget.MenuItem.html#_checkImage">_checkImage
</a>,
150 <a href=
"YAHOO.widget.MenuItem.html#_oAnchor">_oAnchor
</a>,
151 <a href=
"YAHOO.widget.MenuItem.html#_oCheckedIndicator">_oCheckedIndicator
</a>,
152 <a href=
"YAHOO.widget.MenuItem.html#_oHelpTextEM">_oHelpTextEM
</a>,
153 <a href=
"YAHOO.widget.MenuItem.html#_oOnclickAttributeValue">_oOnclickAttributeValue
</a>,
154 <a href=
"YAHOO.widget.MenuItem.html#_oSubmenu">_oSubmenu
</a>,
155 <a href=
"YAHOO.widget.MenuItem.html#_oText">_oText
</a>,
156 <a href=
"YAHOO.widget.MenuItem.html#_sClassName">_sClassName
</a>,
157 <a href=
"YAHOO.widget.MenuItem.html#browser">browser
</a>,
158 <a href=
"YAHOO.widget.MenuItem.html#CHECKED_IMAGE_ALT_TEXT">CHECKED_IMAGE_ALT_TEXT
</a>,
159 <a href=
"YAHOO.widget.MenuItem.html#CHECKED_IMAGE_PATH">CHECKED_IMAGE_PATH
</a>,
160 <a href=
"YAHOO.widget.MenuItem.html#CHECKED_TEXT">CHECKED_TEXT
</a>,
161 <a href=
"YAHOO.widget.MenuItem.html#COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT">COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT
</a>,
162 <a href=
"YAHOO.widget.MenuItem.html#COLLAPSED_SUBMENU_INDICATOR_TEXT">COLLAPSED_SUBMENU_INDICATOR_TEXT
</a>,
163 <a href=
"YAHOO.widget.MenuItem.html#constructor">constructor
</a>,
164 <a href=
"YAHOO.widget.MenuItem.html#CSS_CLASS_NAME">CSS_CLASS_NAME
</a>,
165 <a href=
"YAHOO.widget.MenuItem.html#DISABLED_CHECKED_IMAGE_ALT_TEXT">DISABLED_CHECKED_IMAGE_ALT_TEXT
</a>,
166 <a href=
"YAHOO.widget.MenuItem.html#DISABLED_CHECKED_IMAGE_PATH">DISABLED_CHECKED_IMAGE_PATH
</a>,
167 <a href=
"YAHOO.widget.MenuItem.html#DISABLED_CHECKED_TEXT">DISABLED_CHECKED_TEXT
</a>,
168 <a href=
"YAHOO.widget.MenuItem.html#DISABLED_SUBMENU_INDICATOR_ALT_TEXT">DISABLED_SUBMENU_INDICATOR_ALT_TEXT
</a>,
169 <a href=
"YAHOO.widget.MenuItem.html#DISABLED_SUBMENU_INDICATOR_IMAGE_PATH">DISABLED_SUBMENU_INDICATOR_IMAGE_PATH
</a>,
170 <a href=
"YAHOO.widget.MenuItem.html#DISABLED_SUBMENU_INDICATOR_TEXT">DISABLED_SUBMENU_INDICATOR_TEXT
</a>,
171 <a href=
"YAHOO.widget.MenuItem.html#element">element
</a>,
172 <a href=
"YAHOO.widget.MenuItem.html#EXPANDED_SUBMENU_INDICATOR_ALT_TEXT">EXPANDED_SUBMENU_INDICATOR_ALT_TEXT
</a>,
173 <a href=
"YAHOO.widget.MenuItem.html#EXPANDED_SUBMENU_INDICATOR_TEXT">EXPANDED_SUBMENU_INDICATOR_TEXT
</a>,
174 <a href=
"YAHOO.widget.MenuItem.html#groupIndex">groupIndex
</a>,
175 <a href=
"YAHOO.widget.MenuItem.html#id">id
</a>,
176 <a href=
"YAHOO.widget.MenuItem.html#imageRoot">imageRoot
</a>,
177 <a href=
"YAHOO.widget.MenuItem.html#IMG_ROOT">IMG_ROOT
</a>,
178 <a href=
"YAHOO.widget.MenuItem.html#IMG_ROOT_SSL">IMG_ROOT_SSL
</a>,
179 <a href=
"YAHOO.widget.MenuItem.html#index">index
</a>,
180 <a href=
"YAHOO.widget.MenuItem.html#isSecure">isSecure
</a>,
181 <a href=
"YAHOO.widget.MenuItem.html#parent">parent
</a>,
182 <a href=
"YAHOO.widget.MenuItem.html#SELECTED_CHECKED_IMAGE_PATH">SELECTED_CHECKED_IMAGE_PATH
</a>,
183 <a href=
"YAHOO.widget.MenuItem.html#SELECTED_SUBMENU_INDICATOR_IMAGE_PATH">SELECTED_SUBMENU_INDICATOR_IMAGE_PATH
</a>,
184 <a href=
"YAHOO.widget.MenuItem.html#srcElement">srcElement
</a>,
185 <a href=
"YAHOO.widget.MenuItem.html#SUBMENU_INDICATOR_IMAGE_PATH">SUBMENU_INDICATOR_IMAGE_PATH
</a>,
186 <a href=
"YAHOO.widget.MenuItem.html#SUBMENU_TYPE">SUBMENU_TYPE
</a>,
187 <a href=
"YAHOO.widget.MenuItem.html#submenuIndicator">submenuIndicator
</a>,
188 <a href=
"YAHOO.widget.MenuItem.html#value">value
</a>
193 <div class=
"section method details">
194 <h3><a name=
"methodDetails">Methods
</a></h3>
195 <div class=
"content">
197 <a name=
"init">init
</a></h4>
204 <strong>init
</strong>
224 <div class=
"description">
225 The MenuBarItem class's initialization method. This method is
226 automatically called by the constructor, and sets up all DOM references for
227 pre-existing markup, and creates required markup if it is not already present.
230 <div class=
"description">
235 <code>p_oObject
<String
></code>
236 String specifying the text of the menu bar item.
239 <code>p_oObject
<<a href=
"http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
240 one-html.html#ID-74680021">HTMLLIElement
</a>></code>
241 Object specifying the
242 <code><li
></code> element of the menu bar item.
245 <code>p_oObject
<<a href=
"http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
246 one-html.html#ID-38450247">HTMLOptGroupElement
</a>></code>
248 specifying the
<code><optgroup
></code> element of the menu bar item.
251 <code>p_oObject
<<a href=
"http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
252 one-html.html#ID-70901257">HTMLOptionElement
</a>></code>
254 the
<code><option
></code> element of the menu bar item.
257 <code>p_oConfig
<Object
></code>
258 Optional. Object literal specifying the
259 configuration for the menu bar item. See configuration class documentation
277 <a name=
"toString">toString
</a></h4>
284 <strong>toString
</strong>
289 <div class=
"description">
290 Returns a string representing the menu bar item.
293 <div class=
"description">
311 <div class=
"section field inheritance">
312 <h4>Methods inherited from
<a href=
"YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem
</a>:
</h4>
313 <div class=
"content">
316 <a href=
"YAHOO.widget.MenuItem.html#_checkDOMNode">_checkDOMNode
</a>,
317 <a href=
"YAHOO.widget.MenuItem.html#_checkString">_checkString
</a>,
318 <a href=
"YAHOO.widget.MenuItem.html#_createRootNodeStructure">_createRootNodeStructure
</a>,
319 <a href=
"YAHOO.widget.MenuItem.html#_getFirstElement">_getFirstElement
</a>,
320 <a href=
"YAHOO.widget.MenuItem.html#_initSubTree">_initSubTree
</a>,
321 <a href=
"YAHOO.widget.MenuItem.html#_preloadImage">_preloadImage
</a>,
322 <a href=
"YAHOO.widget.MenuItem.html#blur">blur
</a>,
323 <a href=
"YAHOO.widget.MenuItem.html#configChecked">configChecked
</a>,
324 <a href=
"YAHOO.widget.MenuItem.html#configClassName">configClassName
</a>,
325 <a href=
"YAHOO.widget.MenuItem.html#configDisabled">configDisabled
</a>,
326 <a href=
"YAHOO.widget.MenuItem.html#configEmphasis">configEmphasis
</a>,
327 <a href=
"YAHOO.widget.MenuItem.html#configHelpText">configHelpText
</a>,
328 <a href=
"YAHOO.widget.MenuItem.html#configOnClick">configOnClick
</a>,
329 <a href=
"YAHOO.widget.MenuItem.html#configSelected">configSelected
</a>,
330 <a href=
"YAHOO.widget.MenuItem.html#configStrongEmphasis">configStrongEmphasis
</a>,
331 <a href=
"YAHOO.widget.MenuItem.html#configSubmenu">configSubmenu
</a>,
332 <a href=
"YAHOO.widget.MenuItem.html#configTarget">configTarget
</a>,
333 <a href=
"YAHOO.widget.MenuItem.html#configText">configText
</a>,
334 <a href=
"YAHOO.widget.MenuItem.html#configURL">configURL
</a>,
335 <a href=
"YAHOO.widget.MenuItem.html#destroy">destroy
</a>,
336 <a href=
"YAHOO.widget.MenuItem.html#focus">focus
</a>,
337 <a href=
"YAHOO.widget.MenuItem.html#getNextEnabledSibling">getNextEnabledSibling
</a>,
338 <a href=
"YAHOO.widget.MenuItem.html#getPreviousEnabledSibling">getPreviousEnabledSibling
</a>,
339 <a href=
"YAHOO.widget.MenuItem.html#init">init
</a>,
340 <a href=
"YAHOO.widget.MenuItem.html#initDefaultConfig">initDefaultConfig
</a>,
341 <a href=
"YAHOO.widget.MenuItem.html#toString">toString
</a>
348 <div class=
"section field inheritance">
349 <h4>Events inherited from
<a href=
"YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem
</a>:
</h4>
350 <div class=
"content">
353 <a href=
"YAHOO.widget.MenuItem.html#blurEvent">blurEvent
</a>,
354 <a href=
"YAHOO.widget.MenuItem.html#clickEvent">clickEvent
</a>,
355 <a href=
"YAHOO.widget.MenuItem.html#destroyEvent">destroyEvent
</a>,
356 <a href=
"YAHOO.widget.MenuItem.html#focusEvent">focusEvent
</a>,
357 <a href=
"YAHOO.widget.MenuItem.html#keyDownEvent">keyDownEvent
</a>,
358 <a href=
"YAHOO.widget.MenuItem.html#keyPressEvent">keyPressEvent
</a>,
359 <a href=
"YAHOO.widget.MenuItem.html#keyUpEvent">keyUpEvent
</a>,
360 <a href=
"YAHOO.widget.MenuItem.html#mouseDownEvent">mouseDownEvent
</a>,
361 <a href=
"YAHOO.widget.MenuItem.html#mouseOutEvent">mouseOutEvent
</a>,
362 <a href=
"YAHOO.widget.MenuItem.html#mouseOverEvent">mouseOverEvent
</a>,
363 <a href=
"YAHOO.widget.MenuItem.html#mouseUpEvent">mouseUpEvent
</a>
369 <div class=
"section field inheritance">
370 <h4>Configuration attributes inherited from
<a href=
"YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem
</a>:
</h4>
371 <div class=
"content">
374 <a href=
"YAHOO.widget.MenuItem.html#checked">checked
</a>,
375 <a href=
"YAHOO.widget.MenuItem.html#classname">classname
</a>,
376 <a href=
"YAHOO.widget.MenuItem.html#disabled">disabled
</a>,
377 <a href=
"YAHOO.widget.MenuItem.html#emphasis">emphasis
</a>,
378 <a href=
"YAHOO.widget.MenuItem.html#helptext">helptext
</a>,
379 <a href=
"YAHOO.widget.MenuItem.html#onclick">onclick
</a>,
380 <a href=
"YAHOO.widget.MenuItem.html#selected">selected
</a>,
381 <a href=
"YAHOO.widget.MenuItem.html#strongemphasis">strongemphasis
</a>,
382 <a href=
"YAHOO.widget.MenuItem.html#submenu">submenu
</a>,
383 <a href=
"YAHOO.widget.MenuItem.html#target">target
</a>,
384 <a href=
"YAHOO.widget.MenuItem.html#text">text
</a>,
385 <a href=
"YAHOO.widget.MenuItem.html#url">url
</a>
399 <li class=
""><a href=
"module_animation.html">animation
</a></li>
401 <li class=
""><a href=
"module_autocomplete.html">autocomplete
</a></li>
403 <li class=
""><a href=
"module_button.html">button
</a></li>
405 <li class=
""><a href=
"module_calendar.html">calendar
</a></li>
407 <li class=
""><a href=
"module_connection.html">connection
</a></li>
409 <li class=
""><a href=
"module_container.html">container
</a></li>
411 <li class=
""><a href=
"module_datasource.html">datasource
</a></li>
413 <li class=
""><a href=
"module_datatable.html">datatable
</a></li>
415 <li class=
""><a href=
"module_dom.html">dom
</a></li>
417 <li class=
""><a href=
"module_dragdrop.html">dragdrop
</a></li>
419 <li class=
""><a href=
"module_element.html">element
</a></li>
421 <li class=
""><a href=
"module_event.html">event
</a></li>
423 <li class=
""><a href=
"module_history.html">history
</a></li>
425 <li class=
""><a href=
"module_logger.html">logger
</a></li>
427 <li class=
"selected"><a href=
"module_menu.html">menu
</a></li>
429 <li class=
""><a href=
"module_slider.html">slider
</a></li>
431 <li class=
""><a href=
"module_tabview.html">tabview
</a></li>
433 <li class=
""><a href=
"module_treeview.html">treeview
</a></li>
435 <li class=
""><a href=
"module_yahoo.html">yahoo
</a></li>
442 <li class=
""><a href=
"YAHOO.widget.ContextMenu.html">YAHOO.widget.ContextMenu
</a></li>
443 <li class=
""><a href=
"YAHOO.widget.ContextMenuItem.html">YAHOO.widget.ContextMenuItem
</a></li>
444 <li class=
""><a href=
"YAHOO.widget.Menu.html">YAHOO.widget.Menu
</a></li>
445 <li class=
""><a href=
"YAHOO.widget.Menubar.html">YAHOO.widget.Menubar
</a></li>
446 <li class=
"selected"><a href=
"YAHOO.widget.MenuBarItem.html">YAHOO.widget.MenuBarItem
</a></li>
447 <li class=
""><a href=
"YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem
</a></li>
448 <li class=
""><a href=
"YAHOO.widget.MenuManager.html">YAHOO.widget.MenuManager
</a></li>
455 <li class=
""><a href=
"contextmenu.js.html">contextmenu.js
</a></li>
456 <li class=
""><a href=
"contextmenuitem.js.html">contextmenuitem.js
</a></li>
457 <li class=
""><a href=
"menu.js.html">menu.js
</a></li>
458 <li class=
""><a href=
"menubar.js.html">menubar.js
</a></li>
459 <li class=
""><a href=
"menubaritem.js.html">menubaritem.js
</a></li>
460 <li class=
""><a href=
"menuitem.js.html">menuitem.js
</a></li>
461 <li class=
""><a href=
"menumanager.js.html">menumanager.js
</a></li>
468 <li><a href=
"#CSS_CLASS_NAME">CSS_CLASS_NAME
</a>
469 <!--<code><String></code>-->
477 <li><!--<code>void</code>-->
478 <a href=
"#init">init
</a>
480 <li><!--<code>String</code>-->
481 <a href=
"#toString">toString
</a>
493 Copyright
© 2007 Yahoo! Inc. All rights reserved.