6166 lines
325 KiB
HTML
6166 lines
325 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>API: menu YAHOO.widget.Menu (YUI Library)</title>
|
|
<link rel="stylesheet" type="text/css" href="assets/api.css">
|
|
<script type="text/javascript" src="assets/api-js"></script>
|
|
<script type="text/javascript" src="assets/ac-js"></script>
|
|
</head>
|
|
|
|
<body id="yahoo-com">
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="hd">
|
|
<a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
|
|
<h3>Menu <span class="subtitle">2.5.0</span></h3>
|
|
<p>
|
|
<a href="./index.html">Yahoo! UI Library</a>
|
|
> <a href="./module_menu.html">menu</a>
|
|
> YAHOO.widget.Menu
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<form name="yui-classopts-form">
|
|
<span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> Show Private</span>
|
|
<span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> Show Protected</span>
|
|
</form>
|
|
|
|
<h2>
|
|
|
|
|
|
|
|
|
|
Class <b>YAHOO.widget.Menu</b>
|
|
<span class="extends">
|
|
- extends <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
|
|
</span>
|
|
|
|
<span class="extends">
|
|
</span>
|
|
|
|
</code>
|
|
</h2>
|
|
<!-- class tree goes here -->
|
|
|
|
<dl class="subclasses">
|
|
<dt>Known Subclasses:</dd>
|
|
<dd>
|
|
<a href="YAHOO.widget.MenuBar.html">YAHOO.widget.MenuBar</a>
|
|
<a href="YAHOO.widget.ContextMenu.html">YAHOO.widget.ContextMenu</a>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
<div class="summary description">
|
|
The Menu class creates a container that holds a vertical list representing
|
|
a set of options or commands. Menu is the base class for all
|
|
menu containers.
|
|
</div>
|
|
|
|
<div class="section constructor details">
|
|
<h3 id="constructor">Constructor</h3>
|
|
<div class="content">
|
|
<div class="detail">
|
|
<strong>YAHOO.widget.Menu</strong>
|
|
<code>
|
|
(
|
|
|
|
|
|
|
|
p_oElement
|
|
|
|
|
|
|
|
|
|
,
|
|
p_oConfig
|
|
)
|
|
</code>
|
|
<div class="description">
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oElement
|
|
<String>
|
|
</code>
|
|
String specifying the id attribute of the
|
|
<code><div></code> element of the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oElement
|
|
<String>
|
|
</code>
|
|
String specifying the id attribute of the
|
|
<code><select></code> element to be used as the data source
|
|
for the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oElement
|
|
<<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-22445964">HTMLDivElement</a>>
|
|
</code>
|
|
Object
|
|
specifying the <code><div></code> element of the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oElement
|
|
<<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>>
|
|
</code>
|
|
|
|
Object specifying the <code><select></code> element to be used as
|
|
the data source for the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oConfig
|
|
<Object>
|
|
</code>
|
|
Optional. Object literal specifying the
|
|
configuration for the menu. See configuration class documentation for
|
|
more details.
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section field details">
|
|
<h3 id="properties">Properties</h3>
|
|
<div class="content">
|
|
<div class="private">
|
|
<h4><a name="_aGroupTitleElements">_aGroupTitleElements</a>
|
|
<code>- private Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array of HTML element used to title groups of menu items.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: []
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_aItemGroups">_aItemGroups</a>
|
|
<code>- private Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Multi-dimensional Array representing the menu items as they
|
|
are grouped in the menu.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: []
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_aListElements">_aListElements</a>
|
|
<code>- private Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array of <code><ul></code> elements, each of which is
|
|
the parent node for each item's <code><li></code> element.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: []
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_bHandledMouseOutEvent">_bHandledMouseOutEvent</a>
|
|
<code>- private Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating the current state of the menu's
|
|
"mouseout" event.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_bHandledMouseOverEvent">_bHandledMouseOverEvent</a>
|
|
<code>- private Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating the current state of the menu's
|
|
"mouseover" event.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_bHideDelayEventHandlersAssigned">_bHideDelayEventHandlersAssigned</a>
|
|
<code>- private Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if the "mouseover" and "mouseout" event
|
|
handlers used for hiding the menu via a call to "window.setTimeout" have
|
|
already been assigned.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_bStopMouseEventHandlers">_bStopMouseEventHandlers</a>
|
|
<code>- private Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Stops "mouseover," "mouseout," and "mousemove" event handlers
|
|
from executing.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_nBodyScrollId">_nBodyScrollId</a>
|
|
<code>- private Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the time-out setting used to cancel the
|
|
scrolling of the menu's body element.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_nCurrentMouseX">_nCurrentMouseX</a>
|
|
<code>- private Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
The current x coordinate of the mouse inside the area of
|
|
the menu.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 0
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_nHideDelayId">_nHideDelayId</a>
|
|
<code>- private Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the time-out setting used to cancel the
|
|
hiding of a menu.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_nShowDelayId">_nShowDelayId</a>
|
|
<code>- private Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the time-out setting used to cancel the
|
|
showing of a menu.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_nSubmenuHideDelayId">_nSubmenuHideDelayId</a>
|
|
<code>- private Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the time-out setting used to cancel the
|
|
hiding of a submenu.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="_sClassName">_sClassName</a>
|
|
<code>- private String</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
The current value of the "classname" configuration attribute.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="activeItem">activeItem</a>
|
|
<code>- YAHOO.widget.MenuItem</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Object reference to the item in the menu that has is selected.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="CSS_CLASS_NAME">CSS_CLASS_NAME</a>
|
|
<code>- final String</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
String representing the CSS class(es) to be applied to the
|
|
menu's <code><div></code> element.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: "yuimenu"
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="DEFAULT_CONFIG">DEFAULT_CONFIG</a>
|
|
<code>- private final Object</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Constant representing the Menu's configuration properties
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4><a name="EVENT_TYPES">EVENT_TYPES</a>
|
|
<code>- private final Object</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Constant representing the name of the Menu's events
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="GROUP_TITLE_TAG_NAME">GROUP_TITLE_TAG_NAME</a>
|
|
<code>- final String</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
String representing the tagname of the HTML element used to
|
|
title the menu's item groups.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: H6
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="ITEM_TYPE">ITEM_TYPE</a>
|
|
<code>- final YAHOO.widget.MenuItem</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Object representing the type of menu item to instantiate and
|
|
add when parsing the child nodes (either <code><li></code> element,
|
|
<code><optgroup></code> element or <code><option></code>)
|
|
of the menu's source HTML element.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: YAHOO.widget.MenuItem
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="itemData">itemData</a>
|
|
<code>- Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array of items to be added to the menu. The array can contain
|
|
strings representing the text for each item to be created, object literals
|
|
representing the menu item configuration properties, or MenuItem instances.
|
|
This property should be set via the constructor using the configuration
|
|
object literal.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="lazyLoad">lazyLoad</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if the menu's "lazy load" feature is
|
|
enabled. If set to "true," initialization and rendering of the menu's
|
|
items will be deferred until the first time it is made visible. This
|
|
property should be set via the constructor using the configuration
|
|
object literal.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="OFF_SCREEN_POSITION">OFF_SCREEN_POSITION</a>
|
|
<code>- final Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array representing the default x and y position that a menu
|
|
should have when it is positioned outside the viewport by the
|
|
"poistionOffScreen" method.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: [-10000, -10000]
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="parent">parent</a>
|
|
<code>- YAHOO.widget.MenuItem</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Object reference to the menu's parent menu or menu item.
|
|
This property can be set via the constructor using the configuration
|
|
object literal.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="srcElement">srcElement</a>
|
|
<code>- <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Object reference to the HTML element (either
|
|
<code><select></code> or <code><div></code>) used to
|
|
create the menu.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section field inheritance">
|
|
<h4>Properties inherited from <a href="YAHOO.widget.Module.html">YAHOO.widget.Module</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
|
|
<a class="" href="YAHOO.widget.Module.html#body">body</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#browser">browser</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#cfg">cfg</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#contructor">contructor</a><span class="">,</span>
|
|
<a class="private" href="YAHOO.widget.Module.html#DEFAULT_CONFIG">DEFAULT_CONFIG</a><span class="private">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#element">element</a><span class="">,</span>
|
|
<a class="private" href="YAHOO.widget.Module.html#EVENT_TYPES">EVENT_TYPES</a><span class="private">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#footer">footer</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#header">header</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#id">id</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#imageRoot">imageRoot</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#isSecure">isSecure</a><span class="">,</span>
|
|
<a class="" href="YAHOO.widget.Module.html#platform">platform</a>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
<div class="section field inheritance">
|
|
<h4>Properties inherited from <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
|
|
<a class="private" href="YAHOO.widget.Overlay.html#DEFAULT_CONFIG">DEFAULT_CONFIG</a><span class="private">,</span>
|
|
<a class="private" href="YAHOO.widget.Overlay.html#EVENT_TYPES">EVENT_TYPES</a><span class="private">,</span>
|
|
<a class="private" href="YAHOO.widget.Overlay.html#YAHOO.widget.Overlay._initialized">YAHOO.widget.Overlay._initialized</a>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section method details">
|
|
<h3 id="methods">Methods</h3>
|
|
<div class="content">
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_addItemToGroup">_addItemToGroup</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>_addItemToGroup</strong>
|
|
(
|
|
|
|
|
|
p_nGroupIndex
|
|
|
|
|
|
,
|
|
p_oItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
p_nItemIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Adds a menu item to a group.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Number indicating the group to which the
|
|
item belongs.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance to be added to the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <String></code>
|
|
String specifying the text of the item to be added
|
|
to the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <Object></code>
|
|
Object literal containing a set of menu item
|
|
configuration properties.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nItemIndex <Number></code>
|
|
Optional. Number indicating the index at
|
|
which the menu item should be added.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_cancelHideDelay">_cancelHideDelay</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_cancelHideDelay</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Cancels the call to "hideMenu."
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_cancelShowDelay">_cancelShowDelay</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_cancelShowDelay</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Cancels the call to the "showMenu."
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_configureSubmenu">_configureSubmenu</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_configureSubmenu</strong>
|
|
(
|
|
|
|
|
|
p_oItem
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Subscribes the menu item's submenu to its parent menu's events.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance with the submenu to be configured.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_createItemGroup">_createItemGroup</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
Array
|
|
<strong>_createItemGroup</strong>
|
|
(
|
|
|
|
|
|
p_nIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Creates a new menu item group (array) and its associated
|
|
<code><ul></code> element. Returns an aray of menu item groups.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nIndex <Number></code>
|
|
Number indicating the group to create.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Array
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_disableScrollFooter">_disableScrollFooter</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_disableScrollFooter</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Disables the footer used for scrolling the body of the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_disableScrollHeader">_disableScrollHeader</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_disableScrollHeader</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Disables the header used for scrolling the body of the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_enableScrollFooter">_enableScrollFooter</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_enableScrollFooter</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Enables the footer used for scrolling the body of the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_enableScrollHeader">_enableScrollHeader</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_enableScrollHeader</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Enables the header used for scrolling the body of the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_execHideDelay">_execHideDelay</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_execHideDelay</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Hides the menu after the number of milliseconds specified by
|
|
the "hidedelay" configuration property.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_execShowDelay">_execShowDelay</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_execShowDelay</strong>
|
|
(
|
|
|
|
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Shows the menu after the number of milliseconds specified by
|
|
the "showdelay" configuration property have ellapsed.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object specifying the menu that should
|
|
be made visible.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_execSubmenuHideDelay">_execSubmenuHideDelay</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_execSubmenuHideDelay</strong>
|
|
(
|
|
|
|
|
|
p_oSubmenu
|
|
|
|
|
|
,
|
|
p_nMouseX
|
|
|
|
|
|
,
|
|
p_nHideDelay
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Hides a submenu after the number of milliseconds specified by
|
|
the "submenuhidedelay" configuration property have ellapsed.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oSubmenu <YAHOO.widget.Menu></code>
|
|
Object specifying the submenu that
|
|
should be hidden.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nMouseX <Number></code>
|
|
The x coordinate of the mouse when it left
|
|
the specified submenu's parent menu item.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nHideDelay <Number></code>
|
|
The number of milliseconds that should ellapse
|
|
before the submenu is hidden.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_getFirstEnabledItem">_getFirstEnabledItem</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>_getFirstEnabledItem</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns the first enabled item in the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_getItemGroup">_getItemGroup</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
Array
|
|
<strong>_getItemGroup</strong>
|
|
(
|
|
|
|
|
|
p_nIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns the menu item group at the specified index.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nIndex <Number></code>
|
|
Number indicating the index of the menu item group
|
|
to be retrieved.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Array
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_initSubTree">_initSubTree</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_initSubTree</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Iterates the childNodes of the source element to find nodes
|
|
used to instantiate menu and menu items.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onBeforeHide">_onBeforeHide</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onBeforeHide</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"beforehide" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onBeforeRender">_onBeforeRender</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onBeforeRender</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"beforerender" event handler for the menu. Appends all of the
|
|
<code><ul></code>, <code><li></code> and their accompanying
|
|
title elements to the body element of the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onBeforeShow">_onBeforeShow</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onBeforeShow</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"beforeshow" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onClick">_onClick</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onClick</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"click" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onInit">_onInit</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onInit</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"init" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onItemAdded">_onItemAdded</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onItemAdded</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"itemadded" event handler for a Menu instance.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event
|
|
was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onKeyDown">_onKeyDown</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onKeyDown</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"keydown" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onKeyPress">_onKeyPress</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onKeyPress</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"keypress" event handler for a Menu instance.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event
|
|
was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onMenuItemBlur">_onMenuItemBlur</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onMenuItemBlur</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"blur" event handler for the menu's items.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event
|
|
that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onMenuItemConfigChange">_onMenuItemConfigChange</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onMenuItemConfigChange</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oItem
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"configchange" event handler for the menu's items.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object representing the menu item
|
|
that fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onMenuItemDestroy">_onMenuItemDestroy</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onMenuItemDestroy</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oItem
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"destroy" event handler for the menu's items.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event
|
|
that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object representing the menu item
|
|
that fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onMenuItemFocus">_onMenuItemFocus</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onMenuItemFocus</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"focus" event handler for the menu's items.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onMouseMove">_onMouseMove</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onMouseMove</strong>
|
|
(
|
|
|
|
|
|
p_oEvent
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"click" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oEvent <Event></code>
|
|
Object representing the DOM event object passed
|
|
back by the event utility (YAHOO.util.Event).
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onMouseOut">_onMouseOut</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onMouseOut</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"mouseout" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onMouseOver">_onMouseOver</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onMouseOver</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"mouseover" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onParentMenuConfigChange">_onParentMenuConfigChange</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onParentMenuConfigChange</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oSubmenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"configchange" event handler for a submenu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oSubmenu <YAHOO.widget.Menu></code>
|
|
Object representing the submenu that
|
|
subscribed to the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onParentMenuRender">_onParentMenuRender</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onParentMenuRender</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oSubmenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"render" event handler for a submenu. Renders a
|
|
submenu in response to the firing of its parent's "render" event.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oSubmenu <YAHOO.widget.Menu></code>
|
|
Object representing the submenu that
|
|
subscribed to the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onRender">_onRender</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onRender</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"render" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onScrollTargetMouseOut">_onScrollTargetMouseOut</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onScrollTargetMouseOut</strong>
|
|
(
|
|
|
|
|
|
p_oEvent
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"mouseout" event handler for the menu's "header" and "footer"
|
|
elements. Used to stop scrolling the body of the menu up and down when the
|
|
menu's "maxheight" configuration property is set to a value greater than 0.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oEvent <Event></code>
|
|
Object representing the DOM event object passed
|
|
back by the event utility (YAHOO.util.Event).
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onScrollTargetMouseOver">_onScrollTargetMouseOver</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onScrollTargetMouseOver</strong>
|
|
(
|
|
|
|
|
|
p_oEvent
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"mouseover" event handler for the menu's "header" and "footer"
|
|
elements. Used to scroll the body of the menu up and down when the
|
|
menu's "maxheight" configuration property is set to a value greater than 0.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oEvent <Event></code>
|
|
Object representing the DOM event object passed
|
|
back by the event utility (YAHOO.util.Event).
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onShow">_onShow</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onShow</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"show" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onSubmenuBeforeShow">_onSubmenuBeforeShow</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onSubmenuBeforeShow</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"beforeshow" event handler for a submenu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_onVisibleChange">_onVisibleChange</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_onVisibleChange</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Change event handler for the the menu's "visible" configuration
|
|
property.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="protected">
|
|
<h4>
|
|
<a name="_onYChange">_onYChange</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
protected
|
|
|
|
|
|
void
|
|
<strong>_onYChange</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"y" event handler for a Menu instance.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event
|
|
was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_removeItemFromGroupByIndex">_removeItemFromGroupByIndex</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>_removeItemFromGroupByIndex</strong>
|
|
(
|
|
|
|
|
|
p_nGroupIndex
|
|
|
|
|
|
,
|
|
p_nItemIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Removes a menu item from a group by index. Returns the menu
|
|
item that was removed.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Number indicating the group to which the menu
|
|
item belongs.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nItemIndex <Number></code>
|
|
Number indicating the index of the menu item
|
|
to be removed.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_removeItemFromGroupByValue">_removeItemFromGroupByValue</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>_removeItemFromGroupByValue</strong>
|
|
(
|
|
|
|
|
|
p_nGroupIndex
|
|
|
|
|
|
,
|
|
p_oItem
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Removes a menu item from a group by reference. Returns the
|
|
menu item that was removed.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Number indicating the group to which the
|
|
menu item belongs.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance to be removed.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_setMaxHeight">_setMaxHeight</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_setMaxHeight</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_nMaxHeight
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"renderEvent" handler used to defer the setting of the
|
|
"maxheight" configuration property until the menu is rendered in lazy
|
|
load scenarios.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nMaxHeight <Number></code>
|
|
Number representing the value to set for the
|
|
"maxheight" configuration property.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_subscribeToItemEvents">_subscribeToItemEvents</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_subscribeToItemEvents</strong>
|
|
(
|
|
|
|
|
|
p_oItem
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Subscribes a menu to a menu item's event.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance whose events should be subscribed to.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="_updateItemProperties">_updateItemProperties</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
void
|
|
<strong>_updateItemProperties</strong>
|
|
(
|
|
|
|
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Updates the "index," "groupindex," and "className" properties
|
|
of the menu items in the specified group.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Number indicating the group of items to update.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="addItem">addItem</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>addItem</strong>
|
|
(
|
|
|
|
|
|
p_oItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Appends an item to the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance to be added to the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <String></code>
|
|
String specifying the text of the item to be added
|
|
to the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <Object></code>
|
|
Object literal containing a set of menu item
|
|
configuration properties.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Optional. Number indicating the group to
|
|
which the item belongs.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="addItems">addItems</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
Array
|
|
<strong>addItems</strong>
|
|
(
|
|
|
|
|
|
p_aItems
|
|
|
|
|
|
,
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Adds an array of items to the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_aItems <Array></code>
|
|
Array of items to be added to the menu. The array
|
|
can contain strings specifying the text for each item to be created, object
|
|
literals specifying each of the menu item configuration properties,
|
|
or MenuItem instances.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Optional. Number specifying the group to
|
|
which the items belongs.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Array
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="blur">blur</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>blur</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Causes the menu to lose focus and fires the "blur" event.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="private">
|
|
<h4>
|
|
<a name="checkPosition">checkPosition</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
private
|
|
|
|
|
|
Boolean
|
|
<strong>checkPosition</strong>
|
|
(
|
|
|
|
|
|
p_sPosition
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Checks to make sure that the value of the "position" property
|
|
is one of the supported strings. Returns true if the position is supported.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sPosition <Object></code>
|
|
String specifying the position of the menu.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Boolean
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="clearActiveItem">clearActiveItem</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>clearActiveItem</strong>
|
|
(
|
|
|
|
|
|
p_bBlur
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Sets the "selected" configuration property of the menu's active
|
|
item to "false" and hides the item's submenu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_bBlur <Boolean></code>
|
|
Boolean indicating if the menu's active item
|
|
should be blurred.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="clearContent">clearContent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>clearContent</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Removes all of the content from the menu, including the menu
|
|
items, group titles, header and footer.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configClassName">configClassName</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configClassName</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "classname" configuration property of
|
|
a menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
The Menu instance fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configContainer">configContainer</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configContainer</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "container" configuration property
|
|
of the menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configDisabled">configDisabled</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configDisabled</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "disabled" configuration property of
|
|
a menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
The Menu instance fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configHideDelay">configHideDelay</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configHideDelay</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "hidedelay" configuration property
|
|
of the menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configIframe">configIframe</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configIframe</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "iframe" configuration property of
|
|
the menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configMaxHeight">configMaxHeight</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configMaxHeight</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "maxheight" configuration property of
|
|
a Menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Collection of arguments sent when the event
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
The Menu instance fired
|
|
the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configPosition">configPosition</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configPosition</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "position" configuration property
|
|
of the menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="configVisible">configVisible</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>configVisible</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
,
|
|
p_oMenu
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Event handler for when the "visible" configuration property
|
|
the menu changes.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oMenu <YAHOO.widget.Menu></code>
|
|
Object representing the menu that
|
|
fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="destroy">destroy</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>destroy</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Removes the menu's <code><div></code> element
|
|
(and accompanying child nodes) from the document.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="enforceConstraints">enforceConstraints</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>enforceConstraints</strong>
|
|
(
|
|
|
|
|
|
type
|
|
|
|
|
|
,
|
|
args
|
|
|
|
|
|
,
|
|
obj
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
The default event handler executed when the moveEvent is fired,
|
|
if the "constraintoviewport" configuration property is set to true.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>type <String></code>
|
|
The name of the event that was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>args <Array></code>
|
|
Collection of arguments sent when the
|
|
event was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>obj <Array></code>
|
|
Array containing the current Menu instance
|
|
and the item that fired the event.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="focus">focus</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>focus</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Causes the menu to receive focus and fires the "focus" event.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="getItem">getItem</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>getItem</strong>
|
|
(
|
|
|
|
|
|
p_nItemIndex
|
|
|
|
|
|
,
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns the item at the specified index.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_nItemIndex <Number></code>
|
|
Number indicating the ordinal position of the
|
|
item to be retrieved.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Optional. Number indicating the group to which
|
|
the item belongs.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="getItemGroups">getItemGroups</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
Array
|
|
<strong>getItemGroups</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Multi-dimensional Array representing the menu items as they
|
|
are grouped in the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Array
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="getItems">getItems</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
Array
|
|
<strong>getItems</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns an array of all of the items in the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Array
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="getRoot">getRoot</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>getRoot</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Finds the menu's root menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="getSubmenus">getSubmenus</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
Array
|
|
<strong>getSubmenus</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns an array of all of the submenus that are immediate
|
|
children of the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Array
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="hasFocus">hasFocus</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
Boolean
|
|
<strong>hasFocus</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns a boolean indicating whether or not the menu has focus.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
Boolean
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="init">init</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>init</strong>
|
|
(
|
|
|
|
|
|
p_oElement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
p_oConfig
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
The Menu 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.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oElement <String></code>
|
|
String specifying the id attribute of the
|
|
<code><div></code> element of the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oElement <String></code>
|
|
String specifying the id attribute of the
|
|
<code><select></code> element to be used as the data source
|
|
for the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oElement <<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-22445964">HTMLDivElement</a>></code>
|
|
Object
|
|
specifying the <code><div></code> element of the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oElement <<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>></code>
|
|
|
|
Object specifying the <code><select></code> element to be used as
|
|
the data source for the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oConfig <Object></code>
|
|
Optional. Object literal specifying the
|
|
configuration for the menu. See configuration class documentation for
|
|
more details.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="initDefaultConfig">initDefaultConfig</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>initDefaultConfig</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Initializes the class's configurable properties which can be
|
|
changed using the menu's Config object ("cfg").
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="initEvents">initEvents</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>initEvents</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Initializes the custom events for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="insertItem">insertItem</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>insertItem</strong>
|
|
(
|
|
|
|
|
|
p_oItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
p_nItemIndex
|
|
|
|
|
|
,
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Inserts an item into the menu at the specified index.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oItem <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance to be added to the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <String></code>
|
|
String specifying the text of the item to be added
|
|
to the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oItem <Object></code>
|
|
Object literal containing a set of menu item
|
|
configuration properties.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nItemIndex <Number></code>
|
|
Number indicating the ordinal position at which
|
|
the item should be added.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Optional. Number indicating the group to which
|
|
the item belongs.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="onRender">onRender</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>onRender</strong>
|
|
(
|
|
|
|
|
|
p_sType
|
|
|
|
|
|
,
|
|
p_aArgs
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
"render" event handler for the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sType <String></code>
|
|
String representing the name of the event that
|
|
was fired.
|
|
</dd>
|
|
<dd>
|
|
<code>p_aArgs <Array></code>
|
|
Array of arguments sent when the event was fired.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="positionOffScreen">positionOffScreen</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>positionOffScreen</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Positions the menu outside of the boundaries of the browser's
|
|
viewport. Called automatically when a menu is hidden to ensure that
|
|
it doesn't force the browser to render uncessary scrollbars.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="removeItem">removeItem</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
YAHOO.widget.MenuItem
|
|
<strong>removeItem</strong>
|
|
(
|
|
|
|
|
|
p_oObject
|
|
|
|
|
|
|
|
|
|
,
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Removes the specified item from the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_oObject <YAHOO.widget.MenuItem></code>
|
|
Object reference for the MenuItem
|
|
instance to be removed from the menu.
|
|
</dd>
|
|
<dd>
|
|
<code>p_oObject <Number></code>
|
|
Number specifying the index of the item
|
|
to be removed.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Optional. Number specifying the group to
|
|
which the item belongs.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
YAHOO.widget.MenuItem
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="setInitialFocus">setInitialFocus</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>setInitialFocus</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Sets focus to the menu's first enabled item.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="setInitialSelection">setInitialSelection</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>setInitialSelection</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Sets the "selected" configuration property of the menu's first
|
|
enabled item to "true."
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="setItemGroupTitle">setItemGroupTitle</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>setItemGroupTitle</strong>
|
|
(
|
|
|
|
|
|
p_sGroupTitle
|
|
|
|
|
|
,
|
|
p_nGroupIndex
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Sets the title of a group of menu items.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_sGroupTitle <String></code>
|
|
String specifying the title of the group.
|
|
</dd>
|
|
<dd>
|
|
<code>p_nGroupIndex <Number></code>
|
|
Optional. Number specifying the group to which
|
|
the title belongs.
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="subscribe">subscribe</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
void
|
|
<strong>subscribe</strong>
|
|
(
|
|
|
|
|
|
p_type
|
|
|
|
|
|
,
|
|
p_fn
|
|
|
|
|
|
,
|
|
p_obj
|
|
|
|
|
|
,
|
|
p_override
|
|
|
|
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Adds the specified CustomEvent subscriber to the menu and each of
|
|
its submenus.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>
|
|
<code>p_type <string></code>
|
|
the type, or name of the event
|
|
</dd>
|
|
<dd>
|
|
<code>p_fn <function></code>
|
|
the function to exectute when the event fires
|
|
</dd>
|
|
<dd>
|
|
<code>p_obj <Object></code>
|
|
An object to be passed along when the event
|
|
fires
|
|
</dd>
|
|
<dd>
|
|
<code>p_override <boolean></code>
|
|
If true, the obj passed in becomes the
|
|
execution scope of the listener
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
void
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="toString">toString</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
String
|
|
<strong>toString</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description">
|
|
Returns a string representing the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
<dl>
|
|
<dt>Returns:
|
|
<code>
|
|
String
|
|
</code></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section field inheritance">
|
|
<h4>Methods inherited from <a href="YAHOO.widget.Module.html">YAHOO.widget.Module</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
<a class="protected" href="YAHOO.widget.Module.html#_addToParent">_addToParent</a><span class="protected">,</span> <a class="protected" href="YAHOO.widget.Module.html#_initResizeMonitor">_initResizeMonitor</a><span class="protected">,</span> <a class="private" href="YAHOO.widget.Module.html#_supportsCWResize">_supportsCWResize</a><span class="private">,</span> <a class="" href="YAHOO.widget.Module.html#appendToBody">appendToBody</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#appendToFooter">appendToFooter</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#appendToHeader">appendToHeader</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#configMonitorResize">configMonitorResize</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#configVisible">configVisible</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#destroy">destroy</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#hide">hide</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#init">init</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#initDefaultConfig">initDefaultConfig</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#initEvents">initEvents</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#initResizeMonitor">initResizeMonitor</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#onDomResize">onDomResize</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#render">render</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#setBody">setBody</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#setFooter">setFooter</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#setHeader">setHeader</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#show">show</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#toString">toString</a>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
<div class="section field inheritance">
|
|
<h4>Methods inherited from <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
<a class="protected" href="YAHOO.widget.Overlay.html#_primeXYFromDOM">_primeXYFromDOM</a><span class="protected">,</span> <a class="" href="YAHOO.widget.Overlay.html#align">align</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#bringToTop">bringToTop</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#center">center</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configConstrainToViewport">configConstrainToViewport</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configContext">configContext</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configFixedCenter">configFixedCenter</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configHeight">configHeight</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configIframe">configIframe</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configVisible">configVisible</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configWidth">configWidth</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configX">configX</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configXY">configXY</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configY">configY</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#configzIndex">configzIndex</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#destroy">destroy</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#doCenterOnDOMEvent">doCenterOnDOMEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#enforceConstraints">enforceConstraints</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#getConstrainedXY">getConstrainedXY</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#hideIframe">hideIframe</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#hideMacGeckoScrollbars">hideMacGeckoScrollbars</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#init">init</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#initDefaultConfig">initDefaultConfig</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#initEvents">initEvents</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#moveTo">moveTo</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#onDomResize">onDomResize</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#showIframe">showIframe</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#showMacGeckoScrollbars">showMacGeckoScrollbars</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#stackIframe">stackIframe</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#syncIframe">syncIframe</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#syncPosition">syncPosition</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#toString">toString</a>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section method details">
|
|
<h3 id="events">Events</h3>
|
|
<div class="content">
|
|
<div class="">
|
|
<h4>
|
|
<a name="clickEvent">clickEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>clickEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the user clicks the on the menu. Passes back the
|
|
DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="itemAddedEvent">itemAddedEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>itemAddedEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when an item is added to the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="itemRemovedEvent">itemRemovedEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>itemRemovedEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when an item is removed to the menu.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="keyDownEvent">keyDownEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>keyDownEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the user presses a key when one of the menu's items
|
|
has focus. Passes back the DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="keyPressEvent">keyPressEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>keyPressEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the user presses an alphanumeric key when one of the
|
|
menu's items has focus. Passes back the DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="keyUpEvent">keyUpEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>keyUpEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the user releases a key when one of the menu's items
|
|
has focus. Passes back the DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="mouseDownEvent">mouseDownEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>mouseDownEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the user mouses down on the menu. Passes back the
|
|
DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="mouseOutEvent">mouseOutEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>mouseOutEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the mouse has left the menu. Passes back the DOM
|
|
Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="mouseOverEvent">mouseOverEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>mouseOverEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the mouse has entered the menu. Passes back
|
|
the DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4>
|
|
<a name="mouseUpEvent">mouseUpEvent</a></h4>
|
|
<div class="detail">
|
|
<code>
|
|
|
|
|
|
|
|
<strong>mouseUpEvent</strong>
|
|
|
|
(
|
|
)
|
|
|
|
</code>
|
|
|
|
<div class="description">
|
|
Fires when the user releases a mouse button while the mouse is
|
|
over the menu. Passes back the DOM Event object as an argument.
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="section field inheritance">
|
|
<h4>Events inherited from <a href="YAHOO.widget.Module.html">YAHOO.widget.Module</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
<a class="" href="YAHOO.widget.Module.html#appendEvent">appendEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#beforeHideEvent">beforeHideEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#beforeInitEvent">beforeInitEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#beforeRenderEvent">beforeRenderEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#beforeShowEvent">beforeShowEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#changeBodyEvent">changeBodyEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#changeContentEvent">changeContentEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#changeFooterEvent">changeFooterEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#changeHeaderEvent">changeHeaderEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#destroyEvent">destroyEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#hideEvent">hideEvent</a> <a class="" href="YAHOO.widget.Module.html#initEvent">initEvent</a> <a class="" href="YAHOO.widget.Module.html#renderEvent">renderEvent</a> <a class="" href="YAHOO.widget.Module.html#showEvent">showEvent</a> <a class="" href="YAHOO.widget.Module.html#YAHOO.widget.Module.textResizeEvent">YAHOO.widget.Module.textResizeEvent</a>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
<div class="section field inheritance">
|
|
<h4>Events inherited from <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
<a class="" href="YAHOO.widget.Overlay.html#beforeMoveEvent">beforeMoveEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#moveEvent">moveEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#YAHOO.widget.Overlay.windowResizeEvent">YAHOO.widget.Overlay.windowResizeEvent</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#YAHOO.widget.Overlay.windowScrollEvent">YAHOO.widget.Overlay.windowScrollEvent</a><span class="">,</span>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section field details">
|
|
<h3 id="configattributes">Configuration Attributes</h3>
|
|
<div class="content">
|
|
<div class="">
|
|
<h4><a name="autosubmenudisplay">autosubmenudisplay</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if submenus are automatically made
|
|
visible when the user mouses over the menu's items.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: true
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="classname">classname</a>
|
|
<code>- String</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
String representing the CSS class to be applied to the
|
|
menu's root <code><div></code> element. The specified class(es)
|
|
are appended in addition to the default class as specified by the menu's
|
|
CSS_CLASS_NAME constant. When set this property is automatically
|
|
applied to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="clicktohide">clicktohide</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if the menu will automatically be
|
|
hidden if the user clicks outside of it. This property is only
|
|
applied when the "position" configuration property is set to dynamic
|
|
and is automatically applied to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: true
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="constraintoviewport">constraintoviewport</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if the menu will try to remain inside
|
|
the boundaries of the size of viewport. This property is only applied
|
|
when the "position" configuration property is set to dynamic and is
|
|
automatically applied to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: true
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="container">container</a>
|
|
<code>- <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-58190037">HTMLElement</a>|String</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
HTML element reference or string specifying the id
|
|
attribute of the HTML element that the menu's markup should be
|
|
rendered into.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: document.body
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="context">context</a>
|
|
<code>- Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array of context arguments for context-sensitive positioning.
|
|
The format is: [id or element, element corner, context corner].
|
|
For example, setting this property to ["img1", "tl", "bl"] would
|
|
align the Mnu's top left corner to the context element's
|
|
bottom left corner. This property is only applied when the "position"
|
|
configuration property is set to dynamic.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="disabled">disabled</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if the menu should be disabled.
|
|
Disabling a menu disables each of its items. (Disabled menu items are
|
|
dimmed and will not respond to user input or fire events.) Disabled
|
|
menus have a corresponding "disabled" CSS class applied to their root
|
|
<code><div></code> element.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="effect">effect</a>
|
|
<code>- Object</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Object or array of objects representing the ContainerEffect
|
|
classes that are active for animating the container. When set this
|
|
property is automatically applied to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="fixedcenter">fixedcenter</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating if the Menu should be anchored to the
|
|
center of the viewport. This property is only applied when the
|
|
"position" configuration property is set to dynamic.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="hidedelay">hidedelay</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number indicating the time (in milliseconds) that should
|
|
expire before the menu is hidden. This property is only applied when
|
|
the "position" configuration property is set to dynamic and is
|
|
automatically applied to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 0
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="iframe">iframe</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating whether or not the Menu should
|
|
have an IFRAME shim; used to prevent SELECT elements from
|
|
poking through an Overlay instance in IE6. When set to "true",
|
|
the iframe shim is created when the Menu instance is intially
|
|
made visible. This property is only applied when the "position"
|
|
configuration property is set to dynamic and is automatically applied
|
|
to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: true for IE6 and below, false for all other browsers.
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="maxheight">maxheight</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number defining the maximum height (in pixels) for a menu's
|
|
body element (<code><div class="bd"<</code>). Once a menu's body
|
|
exceeds this height, the contents of the body are scrolled to maintain
|
|
this value. This value cannot be set lower than the value of the
|
|
"minscrollheight" configuration property.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 0
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="minscrollheight">minscrollheight</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number defining the minimum threshold for the "maxheight"
|
|
configuration property. When set this property is automatically applied
|
|
to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 90
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="position">position</a>
|
|
<code>- String</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
String indicating how a menu should be positioned on the
|
|
screen. Possible values are "static" and "dynamic." Static menus are
|
|
visible by default and reside in the normal flow of the document
|
|
(CSS position: static). Dynamic menus are hidden by default, reside
|
|
out of the normal flow of the document (CSS position: absolute), and
|
|
can overlay other elements on the screen.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: dynamic
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="scrollincrement">scrollincrement</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number used to control the scroll speed of a menu. Used to
|
|
increment the "scrollTop" property of the menu's body by when a menu's
|
|
content is scrolling. When set this property is automatically applied
|
|
to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 1
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="showdelay">showdelay</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number indicating the time (in milliseconds) that should
|
|
expire before a submenu is made visible when the user mouses over
|
|
the menu's items. This property is only applied when the "position"
|
|
configuration property is set to dynamic and is automatically applied
|
|
to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 250
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="submenualignment">submenualignment</a>
|
|
<code>- Array</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array defining how submenus should be aligned to their
|
|
parent menu item. The format is: [itemCorner, submenuCorner]. By default
|
|
a submenu's top left corner is aligned to its parent menu item's top
|
|
right corner.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: ["tl","tr"]
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="submenuhidedelay">submenuhidedelay</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number indicating the time (in milliseconds) that should
|
|
expire before a submenu is hidden when the user mouses out of a menu item
|
|
heading in the direction of a submenu. The value must be greater than or
|
|
equal to the value specified for the "showdelay" configuration property.
|
|
This property is only applied when the "position" configuration property
|
|
is set to dynamic and is automatically applied to all submenus.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: 250
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="visible">visible</a>
|
|
<code>- Boolean</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Boolean indicating whether or not the menu is visible. If
|
|
the menu's "position" configuration property is set to "dynamic" (the
|
|
default), this property toggles the menu's <code><div></code>
|
|
element's "visibility" style property between "visible" (true) or
|
|
"hidden" (false). If the menu's "position" configuration property is
|
|
set to "static" this property toggles the menu's
|
|
<code><div></code> element's "display" style property
|
|
between "block" (true) or "none" (false).
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: false
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="x">x</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the absolute x-coordinate position of
|
|
the Menu. This property is only applied when the "position"
|
|
configuration property is set to dynamic.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="xy">xy</a>
|
|
<code>- Number[]</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Array of the absolute x and y positions of the Menu. This
|
|
property is only applied when the "position" configuration property is
|
|
set to dynamic.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="y">y</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the absolute y-coordinate position of
|
|
the Menu. This property is only applied when the "position"
|
|
configuration property is set to dynamic.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="">
|
|
<h4><a name="zindex">zindex</a>
|
|
<code>- Number</code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description">
|
|
Number representing the CSS z-index of the Menu. This
|
|
property is only applied when the "position" configuration property is
|
|
set to dynamic.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="default">
|
|
Default Value: null
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section field inheritance">
|
|
<h4>Configuration attributes inherited from <a href="YAHOO.widget.Module.html">YAHOO.widget.Module</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
<a class="" href="YAHOO.widget.Module.html#appendtodocumentbody">appendtodocumentbody</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#effect">effect</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#monitorresize">monitorresize</a><span class="">,</span> <a class="" href="YAHOO.widget.Module.html#visible">visible</a><span class="">,</span>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
<div class="section field inheritance">
|
|
<h4>Configuration attributes inherited from <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>:</h4>
|
|
<div class="content">
|
|
<code>
|
|
<a class="" href="YAHOO.widget.Overlay.html#constraintoviewport">constraintoviewport</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#context">context</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#fixedcenter">fixedcenter</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#height">height</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#iframe">iframe</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#width">width</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#x">x</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#xy">xy</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#y">y</a><span class="">,</span> <a class="" href="YAHOO.widget.Overlay.html#zIndex">zIndex</a><span class="">,</span>
|
|
</code>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<div class="nav">
|
|
|
|
<div class="module">
|
|
<h4>Modules</h4>
|
|
<ul class="content">
|
|
|
|
<li class=""><a href="module_animation.html">animation</a></li>
|
|
|
|
<li class=""><a href="module_autocomplete.html">autocomplete</a></li>
|
|
|
|
<li class=""><a href="module_button.html">button</a></li>
|
|
|
|
<li class=""><a href="module_calendar.html">calendar</a></li>
|
|
|
|
<li class=""><a href="module_charts.html">charts</a></li>
|
|
|
|
<li class=""><a href="module_colorpicker.html">colorpicker</a></li>
|
|
|
|
<li class=""><a href="module_connection.html">connection</a></li>
|
|
|
|
<li class=""><a href="module_container.html">container</a></li>
|
|
|
|
<li class=""><a href="module_cookie.html">cookie</a></li>
|
|
|
|
<li class=""><a href="module_datasource.html">datasource</a></li>
|
|
|
|
<li class=""><a href="module_datatable.html">datatable</a></li>
|
|
|
|
<li class=""><a href="module_dom.html">dom</a></li>
|
|
|
|
<li class=""><a href="module_dragdrop.html">dragdrop</a></li>
|
|
|
|
<li class=""><a href="module_editor.html">editor</a></li>
|
|
|
|
<li class=""><a href="module_element.html">element</a></li>
|
|
|
|
<li class=""><a href="module_event.html">event</a></li>
|
|
|
|
<li class=""><a href="module_get.html">get</a></li>
|
|
|
|
<li class=""><a href="module_history.html">history</a></li>
|
|
|
|
<li class=""><a href="module_imagecropper.html">imagecropper</a></li>
|
|
|
|
<li class=""><a href="module_imageloader.html">imageloader</a></li>
|
|
|
|
<li class=""><a href="module_json.html">json</a></li>
|
|
|
|
<li class=""><a href="module_layout.html">layout</a></li>
|
|
|
|
<li class=""><a href="module_logger.html">logger</a></li>
|
|
|
|
<li class="selected"><a href="module_menu.html">menu</a></li>
|
|
|
|
<li class=""><a href="module_profiler.html">profiler</a></li>
|
|
|
|
<li class=""><a href="module_profilerviewer.html">profilerviewer</a></li>
|
|
|
|
<li class=""><a href="module_resize.html">resize</a></li>
|
|
|
|
<li class=""><a href="module_selector.html">selector</a></li>
|
|
|
|
<li class=""><a href="module_slider.html">slider</a></li>
|
|
|
|
<li class=""><a href="module_tabview.html">tabview</a></li>
|
|
|
|
<li class=""><a href="module_treeview.html">treeview</a></li>
|
|
|
|
<li class=""><a href="module_uploader.html">uploader</a></li>
|
|
|
|
<li class=""><a href="module_yahoo.html">yahoo</a></li>
|
|
|
|
<li class=""><a href="module_yuiloader.html">yuiloader</a></li>
|
|
|
|
<li class=""><a href="module_yuitest.html">yuitest</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="module">
|
|
<h4>Classes</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="YAHOO.widget.ContextMenu.html">YAHOO.widget.ContextMenu</a></li>
|
|
<li class=""><a href="YAHOO.widget.ContextMenuItem.html">YAHOO.widget.ContextMenuItem</a></li>
|
|
<li class="selected"><a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a></li>
|
|
<li class=""><a href="YAHOO.widget.MenuBar.html">YAHOO.widget.MenuBar</a></li>
|
|
<li class=""><a href="YAHOO.widget.MenuBarItem.html">YAHOO.widget.MenuBarItem</a></li>
|
|
<li class=""><a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a></li>
|
|
<li class=""><a href="YAHOO.widget.MenuManager.html">YAHOO.widget.MenuManager</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="module">
|
|
<h4>Files</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="contextmenu.js.html">contextmenu.js</a></li>
|
|
<li class=""><a href="contextmenuitem.js.html">contextmenuitem.js</a></li>
|
|
<li class=""><a href="menu.js.html">menu.js</a></li>
|
|
<li class=""><a href="menubar.js.html">menubar.js</a></li>
|
|
<li class=""><a href="menubaritem.js.html">menubaritem.js</a></li>
|
|
<li class=""><a href="menuitem.js.html">menuitem.js</a></li>
|
|
<li class=""><a href="menumanager.js.html">menumanager.js</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="module">
|
|
<h4>Properties</h4>
|
|
<ul class="content">
|
|
<li class="private"><a href="#_aGroupTitleElements">_aGroupTitleElements</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_aItemGroups">_aItemGroups</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_aListElements">_aListElements</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_bHandledMouseOutEvent">_bHandledMouseOutEvent</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_bHandledMouseOverEvent">_bHandledMouseOverEvent</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_bHideDelayEventHandlersAssigned">_bHideDelayEventHandlersAssigned</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_bStopMouseEventHandlers">_bStopMouseEventHandlers</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_nBodyScrollId">_nBodyScrollId</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_nCurrentMouseX">_nCurrentMouseX</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_nHideDelayId">_nHideDelayId</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_nShowDelayId">_nShowDelayId</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_nSubmenuHideDelayId">_nSubmenuHideDelayId</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#_sClassName">_sClassName</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#activeItem">activeItem</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#CSS_CLASS_NAME">CSS_CLASS_NAME</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#DEFAULT_CONFIG">DEFAULT_CONFIG</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class="private"><a href="#EVENT_TYPES">EVENT_TYPES</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#GROUP_TITLE_TAG_NAME">GROUP_TITLE_TAG_NAME</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#ITEM_TYPE">ITEM_TYPE</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#itemData">itemData</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#lazyLoad">lazyLoad</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#OFF_SCREEN_POSITION">OFF_SCREEN_POSITION</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#parent">parent</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
<li class=""><a href="#srcElement">srcElement</a>
|
|
<!--<code><<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
|
|
level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a
|
|
href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
|
|
html#ID-22445964">HTMLDivElement</a>></code>-->
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="module">
|
|
<h4>Methods</h4>
|
|
<ul class="content">
|
|
<li class="private"><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#_addItemToGroup">_addItemToGroup</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_cancelHideDelay">_cancelHideDelay</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_cancelShowDelay">_cancelShowDelay</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_configureSubmenu">_configureSubmenu</a>
|
|
</li>
|
|
<li class="private"><!--<code>Array</code>-->
|
|
<a href="#_createItemGroup">_createItemGroup</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_disableScrollFooter">_disableScrollFooter</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_disableScrollHeader">_disableScrollHeader</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_enableScrollFooter">_enableScrollFooter</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_enableScrollHeader">_enableScrollHeader</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_execHideDelay">_execHideDelay</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_execShowDelay">_execShowDelay</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_execSubmenuHideDelay">_execSubmenuHideDelay</a>
|
|
</li>
|
|
<li class="private"><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#_getFirstEnabledItem">_getFirstEnabledItem</a>
|
|
</li>
|
|
<li class="private"><!--<code>Array</code>-->
|
|
<a href="#_getItemGroup">_getItemGroup</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_initSubTree">_initSubTree</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onBeforeHide">_onBeforeHide</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onBeforeRender">_onBeforeRender</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onBeforeShow">_onBeforeShow</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onClick">_onClick</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onInit">_onInit</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onItemAdded">_onItemAdded</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onKeyDown">_onKeyDown</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onKeyPress">_onKeyPress</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onMenuItemBlur">_onMenuItemBlur</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onMenuItemConfigChange">_onMenuItemConfigChange</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onMenuItemDestroy">_onMenuItemDestroy</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onMenuItemFocus">_onMenuItemFocus</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onMouseMove">_onMouseMove</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onMouseOut">_onMouseOut</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onMouseOver">_onMouseOver</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onParentMenuConfigChange">_onParentMenuConfigChange</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onParentMenuRender">_onParentMenuRender</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onRender">_onRender</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onScrollTargetMouseOut">_onScrollTargetMouseOut</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onScrollTargetMouseOver">_onScrollTargetMouseOver</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onShow">_onShow</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onSubmenuBeforeShow">_onSubmenuBeforeShow</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_onVisibleChange">_onVisibleChange</a>
|
|
</li>
|
|
<li class="protected"><!--<code>void</code>-->
|
|
<a href="#_onYChange">_onYChange</a>
|
|
</li>
|
|
<li class="private"><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#_removeItemFromGroupByIndex">_removeItemFromGroupByIndex</a>
|
|
</li>
|
|
<li class="private"><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#_removeItemFromGroupByValue">_removeItemFromGroupByValue</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_setMaxHeight">_setMaxHeight</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_subscribeToItemEvents">_subscribeToItemEvents</a>
|
|
</li>
|
|
<li class="private"><!--<code>void</code>-->
|
|
<a href="#_updateItemProperties">_updateItemProperties</a>
|
|
</li>
|
|
<li class=""><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#addItem">addItem</a>
|
|
</li>
|
|
<li class=""><!--<code>Array</code>-->
|
|
<a href="#addItems">addItems</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#blur">blur</a>
|
|
</li>
|
|
<li class="private"><!--<code>Boolean</code>-->
|
|
<a href="#checkPosition">checkPosition</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#clearActiveItem">clearActiveItem</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#clearContent">clearContent</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configClassName">configClassName</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configContainer">configContainer</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configDisabled">configDisabled</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configHideDelay">configHideDelay</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configIframe">configIframe</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configMaxHeight">configMaxHeight</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configPosition">configPosition</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#configVisible">configVisible</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#destroy">destroy</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#enforceConstraints">enforceConstraints</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#focus">focus</a>
|
|
</li>
|
|
<li class=""><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#getItem">getItem</a>
|
|
</li>
|
|
<li class=""><!--<code>Array</code>-->
|
|
<a href="#getItemGroups">getItemGroups</a>
|
|
</li>
|
|
<li class=""><!--<code>Array</code>-->
|
|
<a href="#getItems">getItems</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#getRoot">getRoot</a>
|
|
</li>
|
|
<li class=""><!--<code>Array</code>-->
|
|
<a href="#getSubmenus">getSubmenus</a>
|
|
</li>
|
|
<li class=""><!--<code>Boolean</code>-->
|
|
<a href="#hasFocus">hasFocus</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#init">init</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#initDefaultConfig">initDefaultConfig</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#initEvents">initEvents</a>
|
|
</li>
|
|
<li class=""><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#insertItem">insertItem</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#onRender">onRender</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#positionOffScreen">positionOffScreen</a>
|
|
</li>
|
|
<li class=""><!--<code>YAHOO.widget.MenuItem</code>-->
|
|
<a href="#removeItem">removeItem</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#setInitialFocus">setInitialFocus</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#setInitialSelection">setInitialSelection</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#setItemGroupTitle">setItemGroupTitle</a>
|
|
</li>
|
|
<li class=""><!--<code>void</code>-->
|
|
<a href="#subscribe">subscribe</a>
|
|
</li>
|
|
<li class=""><!--<code>String</code>-->
|
|
<a href="#toString">toString</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="module">
|
|
<h4>Events</h4>
|
|
<ul class="content">
|
|
<li class="">
|
|
<a href="#clickEvent">clickEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#itemAddedEvent">itemAddedEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#itemRemovedEvent">itemRemovedEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#keyDownEvent">keyDownEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#keyPressEvent">keyPressEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#keyUpEvent">keyUpEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#mouseDownEvent">mouseDownEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#mouseOutEvent">mouseOutEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#mouseOverEvent">mouseOverEvent</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#mouseUpEvent">mouseUpEvent</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="module">
|
|
<h4>Configuration Attributes</h4>
|
|
<ul class="content">
|
|
<li class="">
|
|
<a href="#autosubmenudisplay">autosubmenudisplay</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#classname">classname</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#clicktohide">clicktohide</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#constraintoviewport">constraintoviewport</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#container">container</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#context">context</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#disabled">disabled</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#effect">effect</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#fixedcenter">fixedcenter</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#hidedelay">hidedelay</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#iframe">iframe</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#maxheight">maxheight</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#minscrollheight">minscrollheight</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#position">position</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#scrollincrement">scrollincrement</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#showdelay">showdelay</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#submenualignment">submenualignment</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#submenuhidedelay">submenuhidedelay</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#visible">visible</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#x">x</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#xy">xy</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#y">y</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#zindex">zindex</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="ft">
|
|
<hr />
|
|
Copyright © 2007 Yahoo! Inc. All rights reserved.
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|