0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-24 08:36:48 +00:00
salesagility_SuiteCRM/jssource/src_files/include/ytree/TreeView/MenuNode.js
2013-09-23 20:30:44 +01:00

25 lines
579 B
JavaScript
Executable File

/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
/**
* A menu-specific implementation that differs from TextNode in that only
* one sibling can be expanded at a time.
* @extends YAHOO.widget.TextNode
* @constructor
*/
YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
if (oParent) {
this.init(oData, oParent, expanded);
this.setUpLabel(oData);
}
/**
* Menus usually allow only one branch to be open at a time.
* @type boolean
*/
this.multiExpand = false;
};
YAHOO.widget.MenuNode.prototype = new YAHOO.widget.TextNode();