From: Alan Knowles Date: Mon, 30 Sep 2013 09:18:54 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=c6d29672f435fa434d1271ac7570e84117ec9784;p=roojs1 roojs-ui.js roojs-ui-debug.js --- diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 501d5829c7..ab0d6c986c 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -19853,6 +19853,10 @@ Roo.extend(Roo.menu.Menu, Roo.util.Observable, { ul.on("mouseover", this.onMouseOver, this); ul.on("mouseout", this.onMouseOut, this); this.items.each(function(item){ + if (item.hidden) { + return; + } + var li = document.createElement("li"); li.className = "x-menu-list-item"; ul.dom.appendChild(li); @@ -20490,6 +20494,12 @@ Roo.extend(Roo.menu.BaseItem, Roo.Component, { * @cfg {Boolean} canActivate True if this item can be visually activated (defaults to false) */ canActivate : false, + + /** + * @cfg {Boolean} hidden True to prevent creation of this menu item (defaults to false) + */ + hidden: false, + /** * @cfg {String} activeClass The CSS class to use when the item becomes activated (defaults to "x-menu-item-active") */ @@ -38141,2456 +38151,4 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel, { g.startEditing(newCell[0], newCell[1]); } } -});/* - * Based on: - * Ext JS Library 1.1.1 - * Copyright(c) 2006-2007, Ext JS, LLC. - * - * Originally Released Under LGPL - original licence link has changed is not relivant. - * - * Fork - LGPL - *