2 "name" : "Roo.menu.ColorMenu",
7 "desc" : "A menu containing a {@link Roo.menu.ColorItem} component (which provides a basic color picker).",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
22 "type" : "Boolean/String",
23 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\"\nfor bottom-right shadow (defaults to \"sides\")",
24 "memberOf" : "Roo.menu.Menu",
29 "name" : "subMenuAlign",
31 "desc" : "The {@link Roo.Element#alignTo} anchor position value to use for submenus of\nthis menu (defaults to \"tl-tr?\")",
32 "memberOf" : "Roo.menu.Menu",
37 "name" : "defaultAlign",
39 "desc" : "The default {@link Roo.Element#alignTo) anchor position value for this menu\nrelative to its element of origin (defaults to \"tl-bl?\")",
40 "memberOf" : "Roo.menu.Menu",
47 "desc" : "The minimum width of the menu in pixels (defaults to 120)",
48 "memberOf" : "Roo.menu.Menu",
53 "name" : "registerMenu",
55 "desc" : "True (default) - means that clicking on screen etc. hides it.",
56 "memberOf" : "Roo.menu.Menu",
61 "name" : "allowOtherMenus",
63 "desc" : "True to allow multiple menus to be displayed at the same time (defaults to false)",
64 "memberOf" : "Roo.menu.Menu",
71 "name" : "addMenuItem",
72 "desc" : "Creates a new {@link Roo.menu.Item} based an the supplied config object and adds it to the menu",
74 "isConstructor" : false,
76 "memberOf" : "Roo.menu.Menu",
85 "desc" : "A MenuItem config object",
92 "type" : "Roo.menu.Item",
93 "desc" : "The menu item that was added"
98 "name" : "addElement",
99 "desc" : "Adds an {@link Roo.Element} object to the menu",
101 "isConstructor" : false,
103 "memberOf" : "Roo.menu.Menu",
111 "type" : "String/HTMLElement/Roo.Element",
112 "desc" : "The element or DOM node to add, or its id",
119 "type" : "Roo.menu.Item",
120 "desc" : "The menu item that was added"
125 "name" : "isVisible",
126 "desc" : "Read-only. Returns true if the menu is currently displayed, else false.",
128 "isConstructor" : false,
130 "memberOf" : "Roo.menu.Menu",
142 "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>",
144 "isConstructor" : false,
146 "memberOf" : "Roo.menu.Menu",
155 "desc" : "One or more menu items, menu item configs or other objects that can be converted to menu items",
162 "type" : "Roo.menu.Item",
163 "desc" : "The menu item that was added, or the last one if multiple items were added"
168 "name" : "addSeparator",
169 "desc" : "Adds a separator bar to the menu",
171 "isConstructor" : false,
173 "memberOf" : "Roo.menu.Menu",
183 "type" : "Roo.menu.Item",
184 "desc" : "The menu item that was added"
189 "name" : "removeAll",
190 "desc" : "Removes and destroys all items in the menu",
192 "isConstructor" : false,
194 "memberOf" : "Roo.menu.Menu",
206 "desc" : "Removes an {@link Roo.menu.Item} from the menu and destroys the object",
208 "isConstructor" : false,
210 "memberOf" : "Roo.menu.Menu",
218 "type" : "Roo.menu.Item",
219 "desc" : "The menu item to remove",
228 "desc" : "Returns this menu's underlying {@link Roo.Element} object",
230 "isConstructor" : false,
232 "memberOf" : "Roo.menu.Menu",
242 "type" : "Roo.Element",
243 "desc" : "The element"
249 "desc" : "Inserts an existing object based on {@link Roo.menu.Item} to the menu at a specified index",
251 "isConstructor" : false,
253 "memberOf" : "Roo.menu.Menu",
262 "desc" : "The index in the menu's list of current items where the new item should be inserted",
267 "type" : "Roo.menu.Item",
268 "desc" : "The menu item to add",
275 "type" : "Roo.menu.Item",
276 "desc" : "The menu item that was added"
282 "desc" : "Hides this menu and optionally all parent menus",
284 "isConstructor" : false,
286 "memberOf" : "Roo.menu.Menu",
295 "desc" : "(optional) True to hide all parent menus recursively, if any (defaults to false)",
304 "desc" : "Displays this menu relative to another element",
306 "isConstructor" : false,
308 "memberOf" : "Roo.menu.Menu",
316 "type" : "String/HTMLElement/Roo.Element",
317 "desc" : "The element to align to",
323 "desc" : "(optional) The {@link Roo.Element#alignTo} anchor position to use in aligning to\nthe element (defaults to this.defaultAlign)",
327 "name" : "parentMenu",
328 "type" : "Roo.menu.Menu",
329 "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
338 "desc" : "Creates a new {@link Roo.menu.TextItem} with the supplied text and adds it to the menu",
340 "isConstructor" : false,
342 "memberOf" : "Roo.menu.Menu",
351 "desc" : "The text to display in the menu item",
358 "type" : "Roo.menu.Item",
359 "desc" : "The menu item that was added"
365 "desc" : "Adds an existing object based on {@link Roo.menu.Item} to the menu",
367 "isConstructor" : false,
369 "memberOf" : "Roo.menu.Menu",
377 "type" : "Roo.menu.Item",
378 "desc" : "The menu item to add",
385 "type" : "Roo.menu.Item",
386 "desc" : "The menu item that was added"
392 "desc" : "Displays this menu at a specific xy position",
394 "isConstructor" : false,
396 "memberOf" : "Roo.menu.Menu",
403 "name" : "xyPosition",
405 "desc" : "Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)",
409 "name" : "parentMenu",
410 "type" : "Roo.menu.Menu",
411 "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
419 "name" : "purgeListeners",
420 "desc" : "Removes all listeners for this object",
422 "isConstructor" : false,
424 "memberOf" : "Roo.util.Observable",
436 "desc" : "Appends an event handler to this element (shorthand for addListener)",
438 "isConstructor" : false,
440 "memberOf" : "Roo.util.Observable",
447 "name" : "eventName",
449 "desc" : "The type of event to listen for",
455 "desc" : "The method the event invokes",
461 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
467 "desc" : "(optional)",
476 "desc" : "Removes a listener (shorthand for removeListener)",
478 "isConstructor" : false,
480 "memberOf" : "Roo.util.Observable",
487 "name" : "eventName",
489 "desc" : "The type of event to listen for",
495 "desc" : "The handler to remove",
501 "desc" : "(optional) The scope (this object) for the handler",
509 "name" : "addEvents",
510 "desc" : "Used to define events on this Observable",
512 "isConstructor" : false,
514 "memberOf" : "Roo.util.Observable",
523 "desc" : "The object with the events defined",
531 "name" : "releaseCapture",
532 "desc" : "Removes <b>all</b> added captures from the Observable.",
534 "isConstructor" : false,
536 "memberOf" : "Roo.util.Observable",
544 "type" : "Observable",
545 "desc" : "The Observable to release",
553 "name" : "removeListener",
554 "desc" : "Removes a listener",
556 "isConstructor" : false,
558 "memberOf" : "Roo.util.Observable",
565 "name" : "eventName",
567 "desc" : "The type of event to listen for",
573 "desc" : "The handler to remove",
579 "desc" : "(optional) The scope (this object) for the handler",
587 "name" : "fireEvent",
588 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
590 "isConstructor" : false,
592 "memberOf" : "Roo.util.Observable",
599 "name" : "eventName",
606 "type" : "Object...",
607 "desc" : "Variable number of parameters are passed to handlers",
615 "desc" : "returns false if any of the handlers return false otherwise it returns true"
620 "name" : "hasListener",
621 "desc" : "Checks to see if this object has any listeners for a specified event",
623 "isConstructor" : false,
625 "memberOf" : "Roo.util.Observable",
632 "name" : "eventName",
634 "desc" : "The name of the event to check for",
642 "desc" : "True if the event is being listened for, else false"
648 "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.",
650 "isConstructor" : false,
652 "memberOf" : "Roo.util.Observable",
660 "type" : "Observable",
661 "desc" : "The Observable to capture",
667 "desc" : "The function to call",
673 "desc" : "(optional) The scope (this object) for the fn",
681 "name" : "addListener",
682 "desc" : "Appends an event handler to this component",
684 "isConstructor" : false,
686 "memberOf" : "Roo.util.Observable",
693 "name" : "eventName",
695 "desc" : "The type of event to listen for",
701 "desc" : "The method the event invokes",
707 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
713 "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>",
733 "type" : "ColorPalette",
748 "name" : "mouseover",
749 "desc" : "Fires when the mouse is hovering over this menu",
750 "memberOf" : "Roo.menu.Menu",
758 "type" : "Roo.menu.Menu",
764 "type" : "Roo.EventObject",
770 "type" : "Roo.menu.Item",
771 "desc" : "The menu item that was clicked",
780 "desc" : "Fires when the mouse exits this menu",
781 "memberOf" : "Roo.menu.Menu",
789 "type" : "Roo.menu.Menu",
795 "type" : "Roo.EventObject",
801 "type" : "Roo.menu.Item",
802 "desc" : "The menu item that was clicked",
810 "name" : "beforehide",
811 "desc" : "Fires before this menu is hidden",
812 "memberOf" : "Roo.menu.Menu",
820 "type" : "Roo.menu.Menu",
829 "name" : "itemclick",
830 "desc" : "Fires when a menu item contained in this menu is clicked",
831 "memberOf" : "Roo.menu.Menu",
839 "type" : "Roo.menu.BaseItem",
840 "desc" : "The BaseItem that was clicked",
845 "type" : "Roo.EventObject",
854 "name" : "beforeshow",
855 "desc" : "Fires before this menu is displayed",
856 "memberOf" : "Roo.menu.Menu",
864 "type" : "Roo.menu.Menu",
874 "desc" : "Fires after this menu is hidden",
875 "memberOf" : "Roo.menu.Menu",
883 "type" : "Roo.menu.Menu",
893 "desc" : "Fires when this menu is clicked (or when the enter key is pressed while it is active)",
894 "memberOf" : "Roo.menu.Menu",
902 "type" : "Roo.menu.Menu",
908 "type" : "Roo.menu.Item",
909 "desc" : "The menu item that was clicked",
914 "type" : "Roo.EventObject",
924 "desc" : "Fires after this menu is displayed",
925 "memberOf" : "Roo.menu.Menu",
933 "type" : "Roo.menu.Menu",