2 "name" : "Roo.menu.Menu",
19 "desc" : "A menu object. This is the container to which you add all other menu items. Menu can also serve a as a base class\nwhen you want a specialzed menu based off of another component (like {@link Roo.menu.DateMenu} for example).",
20 "isSingleton" : false,
24 "isBuilderTop" : false,
34 "desc" : "Configuration options",
45 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
46 "memberOf" : "Roo.util.Observable"
50 "type" : "Boolean/String",
51 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\"\nfor bottom-right shadow (defaults to \"sides\")",
55 "name" : "defaultAlign",
57 "desc" : "The default {@link Roo.Element#alignTo) anchor position value for this menu\nrelative to its element of origin (defaults to \"tl-bl?\")",
61 "name" : "subMenuAlign",
63 "desc" : "The {@link Roo.Element#alignTo} anchor position value to use for submenus of\nthis menu (defaults to \"tl-tr?\")",
69 "desc" : "The minimum width of the menu in pixels (defaults to 120)",
73 "name" : "registerMenu",
75 "desc" : "True (default) - means that clicking on screen etc. hides it.",
79 "name" : "allowOtherMenus",
81 "desc" : "True to allow multiple menus to be displayed at the same time (defaults to false)",
87 "name" : "addMenuItem",
89 "desc" : "Creates a new {@link Roo.menu.Item} based an the supplied config object and adds it to the menu",
94 "isConstructor" : false,
106 "desc" : "A MenuItem config object",
113 "type" : "Roo.menu.Item",
114 "desc" : "The menu item that was added"
119 "name" : "addElement",
121 "desc" : "Adds an {@link Roo.Element} object to the menu",
126 "isConstructor" : false,
137 "type" : "String/HTMLElement/Roo.Element",
138 "desc" : "The element or DOM node to add, or its id",
145 "type" : "Roo.menu.Item",
146 "desc" : "The menu item that was added"
151 "name" : "isVisible",
153 "desc" : "Read-only. Returns true if the menu is currently displayed, else false.",
154 "sig" : "()\n{\n\n}",
158 "isConstructor" : false,
172 "desc" : "Addds one or more items of any type supported by the Menu class, or that can be converted into menu items.\nAny of the following are valid:\n<ul>\n<li>Any menu item object based on {@link Roo.menu.Item}</li>\n<li>An HTMLElement object which will be converted to a menu item</li>\n<li>A menu item config object that will be created as a new menu item</li>\n<li>A string, which can either be '-' or 'separator' to add a menu separator, otherwise\nit will be converted into a {@link Roo.menu.TextItem} and added</li>\n</ul>\nUsage:\n<pre><code>\n// Create the menu\nvar menu = new Roo.menu.Menu();\n\n// Create a menu item to add by reference\nvar menuItem = new Roo.menu.Item({ text: 'New Item!' });\n\n// Add a bunch of items at once using different methods.\n// Only the last item added will be returned.\nvar item = menu.add(\n menuItem, // add existing item by ref\n 'Dynamic Item', // new TextItem\n '-', // new separator\n { text: 'Config Item' } // new item by config\n);\n</code></pre>",
177 "isConstructor" : false,
189 "desc" : "One or more menu items, menu item configs or other objects that can be converted to menu items",
196 "type" : "Roo.menu.Item",
197 "desc" : "The menu item that was added, or the last one if multiple items were added"
202 "name" : "addSeparator",
204 "desc" : "Adds a separator bar to the menu",
205 "sig" : "()\n{\n\n}",
209 "isConstructor" : false,
221 "type" : "Roo.menu.Item",
222 "desc" : "The menu item that was added"
227 "name" : "removeAll",
229 "desc" : "Removes and destroys all items in the menu",
230 "sig" : "()\n{\n\n}",
234 "isConstructor" : false,
248 "desc" : "Removes an {@link Roo.menu.Item} from the menu and destroys the object",
253 "isConstructor" : false,
264 "type" : "Roo.menu.Item",
265 "desc" : "The menu item to remove",
274 "desc" : "Returns this menu's underlying {@link Roo.Element} object",
275 "sig" : "()\n{\n\n}",
279 "isConstructor" : false,
291 "type" : "Roo.Element",
292 "desc" : "The element"
299 "desc" : "Inserts an existing object based on {@link Roo.menu.Item} to the menu at a specified index",
300 "sig" : "(index, item)",
304 "isConstructor" : false,
316 "desc" : "The index in the menu's list of current items where the new item should be inserted",
321 "type" : "Roo.menu.Item",
322 "desc" : "The menu item to add",
329 "type" : "Roo.menu.Item",
330 "desc" : "The menu item that was added"
337 "desc" : "Hides this menu and optionally all parent menus",
342 "isConstructor" : false,
354 "desc" : "(optional) True to hide all parent menus recursively, if any (defaults to false)",
363 "desc" : "Displays this menu relative to another element",
364 "sig" : "(element, position, parentMenu)",
368 "isConstructor" : false,
379 "type" : "String/HTMLElement/Roo.Element",
380 "desc" : "The element to align to",
386 "desc" : "(optional) The {@link Roo.Element#alignTo} anchor position to use in aligning to\nthe element (defaults to this.defaultAlign)",
390 "name" : "parentMenu",
391 "type" : "Roo.menu.Menu",
392 "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
401 "desc" : "Creates a new {@link Roo.menu.TextItem} with the supplied text and adds it to the menu",
406 "isConstructor" : false,
418 "desc" : "The text to display in the menu item",
425 "type" : "Roo.menu.Item",
426 "desc" : "The menu item that was added"
433 "desc" : "Adds an existing object based on {@link Roo.menu.Item} to the menu",
438 "isConstructor" : false,
449 "type" : "Roo.menu.Item",
450 "desc" : "The menu item to add",
457 "type" : "Roo.menu.Item",
458 "desc" : "The menu item that was added"
465 "desc" : "Displays this menu at a specific xy position",
466 "sig" : "(xyPosition, parentMenu)",
470 "isConstructor" : false,
480 "name" : "xyPosition",
482 "desc" : "Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)",
486 "name" : "parentMenu",
487 "type" : "Roo.menu.Menu",
488 "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
495 "name" : "purgeListeners",
497 "desc" : "Removes all listeners for this object",
498 "sig" : "()\n{\n\n}",
500 "memberOf" : "Roo.util.Observable",
502 "isConstructor" : false,
516 "desc" : "Appends an event handler to this element (shorthand for addListener)",
517 "sig" : "(eventName, handler, scope, options)",
519 "memberOf" : "Roo.util.Observable",
521 "isConstructor" : false,
531 "name" : "eventName",
533 "desc" : "The type of event to listen for",
539 "desc" : "The method the event invokes",
545 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
551 "desc" : "(optional)",
560 "desc" : "Removes a listener (shorthand for removeListener)",
561 "sig" : "(eventName, handler, scope)",
563 "memberOf" : "Roo.util.Observable",
565 "isConstructor" : false,
575 "name" : "eventName",
577 "desc" : "The type of event to listen for",
583 "desc" : "The handler to remove",
589 "desc" : "(optional) The scope (this object) for the handler",
596 "name" : "addEvents",
598 "desc" : "Used to define events on this Observable",
601 "memberOf" : "Roo.util.Observable",
603 "isConstructor" : false,
615 "desc" : "The object with the events defined",
622 "name" : "releaseCapture",
624 "desc" : "Removes <b>all</b> added captures from the Observable.",
627 "memberOf" : "Roo.util.Observable",
629 "isConstructor" : false,
640 "type" : "Observable",
641 "desc" : "The Observable to release",
648 "name" : "removeListener",
650 "desc" : "Removes a listener",
651 "sig" : "(eventName, handler, scope)",
653 "memberOf" : "Roo.util.Observable",
655 "isConstructor" : false,
665 "name" : "eventName",
667 "desc" : "The type of event to listen for",
673 "desc" : "The handler to remove",
679 "desc" : "(optional) The scope (this object) for the handler",
686 "name" : "fireEvent",
688 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
689 "sig" : "(eventName, args)",
691 "memberOf" : "Roo.util.Observable",
693 "isConstructor" : false,
703 "name" : "eventName",
710 "type" : "Object...",
711 "desc" : "Variable number of parameters are passed to handlers",
719 "desc" : "returns false if any of the handlers return false otherwise it returns true"
724 "name" : "hasListener",
726 "desc" : "Checks to see if this object has any listeners for a specified event",
727 "sig" : "(eventName)",
729 "memberOf" : "Roo.util.Observable",
731 "isConstructor" : false,
741 "name" : "eventName",
743 "desc" : "The name of the event to check for",
751 "desc" : "True if the event is being listened for, else false"
758 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
759 "sig" : "(o, fn, scope)",
761 "memberOf" : "Roo.util.Observable",
763 "isConstructor" : false,
774 "type" : "Observable",
775 "desc" : "The Observable to capture",
781 "desc" : "The function to call",
787 "desc" : "(optional) The scope (this object) for the fn",
794 "name" : "addListener",
796 "desc" : "Appends an event handler to this component",
797 "sig" : "(eventName, handler, scope, options)",
799 "memberOf" : "Roo.util.Observable",
801 "isConstructor" : false,
811 "name" : "eventName",
813 "desc" : "The type of event to listen for",
819 "desc" : "The method the event invokes",
825 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
831 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
840 "name" : "mouseover",
842 "desc" : "Fires when the mouse is hovering over this menu",
843 "sig" : "function (_self, e, menuItem)\n{\n\n}",
852 "type" : "Roo.menu.Menu",
858 "type" : "Roo.EventObject",
864 "type" : "Roo.menu.Item",
865 "desc" : "The menu item that was clicked",
874 "desc" : "Fires when the mouse exits this menu",
875 "sig" : "function (_self, e, menuItem)\n{\n\n}",
884 "type" : "Roo.menu.Menu",
890 "type" : "Roo.EventObject",
896 "type" : "Roo.menu.Item",
897 "desc" : "The menu item that was clicked",
904 "name" : "beforehide",
906 "desc" : "Fires before this menu is hidden",
907 "sig" : "function (_self)\n{\n\n}",
916 "type" : "Roo.menu.Menu",
924 "name" : "itemclick",
926 "desc" : "Fires when a menu item contained in this menu is clicked",
927 "sig" : "function (baseItem, e)\n{\n\n}",
936 "type" : "Roo.menu.BaseItem",
937 "desc" : "The BaseItem that was clicked",
942 "type" : "Roo.EventObject",
950 "name" : "beforeshow",
952 "desc" : "Fires before this menu is displayed",
953 "sig" : "function (_self)\n{\n\n}",
962 "type" : "Roo.menu.Menu",
972 "desc" : "Fires after this menu is hidden",
973 "sig" : "function (_self)\n{\n\n}",
982 "type" : "Roo.menu.Menu",
992 "desc" : "Fires when this menu is clicked (or when the enter key is pressed while it is active)",
993 "sig" : "function (_self, menuItem, e)\n{\n\n}",
1002 "type" : "Roo.menu.Menu",
1004 "isOptional" : false
1007 "name" : "menuItem",
1008 "type" : "Roo.menu.Item",
1009 "desc" : "The menu item that was clicked",
1010 "isOptional" : false
1014 "type" : "Roo.EventObject",
1016 "isOptional" : false
1023 "type" : "function",
1024 "desc" : "Fires after this menu is displayed",
1025 "sig" : "function (_self)\n{\n\n}",
1034 "type" : "Roo.menu.Menu",
1036 "isOptional" : false