roojs-ui-debug.js
[roojs1] / roojs-debug.js
index 943a4aa..a19a416 100644 (file)
@@ -34800,6 +34800,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);
@@ -35437,6 +35441,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")
      */