]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - jssource/src_files/include/ytree/TreeView/MenuNode.js
Release 6.5.0
[Github/sugarcrm.git] / jssource / src_files / include / ytree / TreeView / MenuNode.js
1 /* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
2
3 /**
4  * A menu-specific implementation that differs from TextNode in that only 
5  * one sibling can be expanded at a time.
6  * @extends YAHOO.widget.TextNode
7  * @constructor
8  */
9 YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
10         if (oParent) { 
11                 this.init(oData, oParent, expanded);
12                 this.setUpLabel(oData);
13         }
14
15     /**
16      * Menus usually allow only one branch to be open at a time.
17      * @type boolean
18      */
19         this.multiExpand = false;
20
21 };
22
23 YAHOO.widget.MenuNode.prototype = new YAHOO.widget.TextNode();
24