a:15:{s:9:"#provides";s:32:"dojox.widget.PlaceholderMenuItem";s:9:"#resource";s:29:"widget/PlaceholderMenuItem.js";s:9:"#requires";a:1:{i:0;a:3:{i:0;s:6:"common";i:1;s:10:"dijit.Menu";i:2;s:5:"dijit";}}s:32:"dojox.widget.PlaceholderMenuItem";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:14:"dijit.MenuItem";}s:4:"call";a:1:{i:0;s:14:"dijit.MenuItem";}}s:7:"summary";s:178:"A menu item that can be used as a placeholder. Set the label of this item to a unique key and you can then use it to add new items at that location. This item is not displayed.";s:9:"classlike";b:1;}s:42:"dojox.widget.PlaceholderMenuItem._replaced";a:4:{s:9:"prototype";s:32:"dojox.widget.PlaceholderMenuItem";s:8:"instance";s:32:"dojox.widget.PlaceholderMenuItem";s:7:"private";b:1;s:7:"summary";s:0:"";}s:46:"dojox.widget.PlaceholderMenuItem._replacedWith";a:4:{s:9:"prototype";s:32:"dojox.widget.PlaceholderMenuItem";s:8:"instance";s:32:"dojox.widget.PlaceholderMenuItem";s:7:"private";b:1;s:7:"summary";s:0:"";}s:47:"dojox.widget.PlaceholderMenuItem._isPlaceholder";a:3:{s:9:"prototype";s:32:"dojox.widget.PlaceholderMenuItem";s:7:"private";b:1;s:7:"summary";s:0:"";}s:43:"dojox.widget.PlaceholderMenuItem.postCreate";a:4:{s:9:"prototype";s:32:"dojox.widget.PlaceholderMenuItem";s:4:"type";s:8:"Function";s:6:"source";s:166:" this.domNode.style.display = "none"; this._replacedWith = []; if(!this.label){ this.label = this.containerNode.innerHTML; } this.inherited(arguments); ";s:7:"summary";s:0:"";}s:40:"dojox.widget.PlaceholderMenuItem.replace";a:6:{s:9:"prototype";s:32:"dojox.widget.PlaceholderMenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"menuItems";a:1:{s:4:"type";s:16:"dijit.MenuItem[]";}}s:6:"source";s:306:" if(this._replaced){ return false; } var index = this.getIndexInParent(); if(index < 0){ return false; } var p = this.getParent(); dojo.forEach(menuItems, function(item){ p.addChild(item, index++); }); this._replacedWith = menuItems; this._replaced = true; return true;";s:7:"summary";s:169:"replaces this menu item with the given menuItems. The original menu item is not actually removed from the menu - so if you want it removed, you must do that explicitly.";s:14:"return_summary";s:42:"true if the replace happened, false if not";}s:42:"dojox.widget.PlaceholderMenuItem.unReplace";a:7:{s:9:"prototype";s:32:"dojox.widget.PlaceholderMenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"destroy";a:3:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";s:7:"summary";s:39:"Also call destroy on any removed items.";}}s:6:"source";s:342:" if(!this._replaced){ return []; } var p = this.getParent(); if(!p){ return []; } var r = this._replacedWith; dojo.forEach(this._replacedWith, function(item){ p.removeChild(item); if(destroy){ item.destroy(); } }); this._replacedWith = []; this._replaced = false; return r; // dijit.MenuItem[] ";s:7:"summary";s:146:"Removes menu items added by calling replace(). It returns the array of items that were actually removed (in case you want to clean them up later)";s:14:"return_summary";s:45:"The array of items that were actually removed";s:7:"returns";s:16:"dijit.MenuItem[]";}s:54:"dojox.widget.PlaceholderMenuItem.domNode.style.display";a:2:{s:8:"instance";s:32:"dojox.widget.PlaceholderMenuItem";s:7:"summary";s:0:"";}s:38:"dojox.widget.PlaceholderMenuItem.label";a:2:{s:8:"instance";s:32:"dojox.widget.PlaceholderMenuItem";s:7:"summary";s:0:"";}s:26:"dijit.Menu.getPlaceholders";a:7:{s:9:"prototype";s:10:"dijit.Menu";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"label";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"String";s:7:"summary";s:74:"Label to search for - if not specified, then all placeholders are returned";}}s:6:"source";s:618:" var r = []; var children = this.getChildren(); children.forEach(function(child){ if(child._isPlaceholder && (!label || child.label == label)){ r.push(child); }else if(child._started && child.popup && child.popup.getPlaceholders){ r = r.concat(child.popup.getPlaceholders(label)); }else if(!child._started && child.dropDownContainer){ var node = dojo.query("[widgetId]", child.dropDownContainer)[0]; var menu = dijit.byNode(node); if(menu.getPlaceholders){ r = r.concat(menu.getPlaceholders(label)); } } }, this); return r; // dojox.widget.PlaceholderMenuItem[]";s:7:"summary";s:79:"returns an array of placeholders with the given label. There can be multiples.";s:14:"return_summary";s:51:"An array of placeholders that match the given label";s:7:"returns";s:34:"dojox.widget.PlaceholderMenuItem[]";}s:12:"dojox.widget";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}