2 "name" : "Roo.menu.DateMenu",
8 "desc" : "A menu containing a {@link Roo.menu.DateItem} component (which provides a date picker).",
12 "memberOf" : "DateMenu",
21 "desc" : "Configuration options",
32 "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>",
33 "memberOf" : "Roo.util.Observable"
37 "type" : "Boolean/String",
38 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\"\nfor bottom-right shadow (defaults to \"sides\")",
39 "memberOf" : "Roo.menu.Menu"
42 "name" : "defaultAlign",
44 "desc" : "The default {@link Roo.Element#alignTo) anchor position value for this menu\nrelative to its element of origin (defaults to \"tl-bl?\")",
45 "memberOf" : "Roo.menu.Menu"
48 "name" : "subMenuAlign",
50 "desc" : "The {@link Roo.Element#alignTo} anchor position value to use for submenus of\nthis menu (defaults to \"tl-tr?\")",
51 "memberOf" : "Roo.menu.Menu"
56 "desc" : "The minimum width of the menu in pixels (defaults to 120)",
57 "memberOf" : "Roo.menu.Menu"
60 "name" : "registerMenu",
62 "desc" : "True (default) - means that clicking on screen etc. hides it.",
63 "memberOf" : "Roo.menu.Menu"
66 "name" : "allowOtherMenus",
68 "desc" : "True to allow multiple menus to be displayed at the same time (defaults to false)",
69 "memberOf" : "Roo.menu.Menu"
74 "name" : "addMenuItem",
76 "desc" : "Creates a new {@link Roo.menu.Item} based an the supplied config object and adds it to the menu",
79 "memberOf" : "Roo.menu.Menu",
81 "isConstructor" : false,
93 "desc" : "A MenuItem config object",
100 "type" : "Roo.menu.Item",
101 "desc" : "The menu item that was added"
106 "name" : "addElement",
108 "desc" : "Adds an {@link Roo.Element} object to the menu",
111 "memberOf" : "Roo.menu.Menu",
113 "isConstructor" : false,
124 "type" : "String/HTMLElement/Roo.Element",
125 "desc" : "The element or DOM node to add, or its id",
132 "type" : "Roo.menu.Item",
133 "desc" : "The menu item that was added"
138 "name" : "isVisible",
140 "desc" : "Read-only. Returns true if the menu is currently displayed, else false.",
141 "sig" : "()\n{\n\n}",
143 "memberOf" : "Roo.menu.Menu",
145 "isConstructor" : false,
159 "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>",
162 "memberOf" : "Roo.menu.Menu",
164 "isConstructor" : false,
176 "desc" : "One or more menu items, menu item configs or other objects that can be converted to menu items",
183 "type" : "Roo.menu.Item",
184 "desc" : "The menu item that was added, or the last one if multiple items were added"
189 "name" : "addSeparator",
191 "desc" : "Adds a separator bar to the menu",
192 "sig" : "()\n{\n\n}",
194 "memberOf" : "Roo.menu.Menu",
196 "isConstructor" : false,
208 "type" : "Roo.menu.Item",
209 "desc" : "The menu item that was added"
214 "name" : "removeAll",
216 "desc" : "Removes and destroys all items in the menu",
217 "sig" : "()\n{\n\n}",
219 "memberOf" : "Roo.menu.Menu",
221 "isConstructor" : false,
235 "desc" : "Removes an {@link Roo.menu.Item} from the menu and destroys the object",
238 "memberOf" : "Roo.menu.Menu",
240 "isConstructor" : false,
251 "type" : "Roo.menu.Item",
252 "desc" : "The menu item to remove",
261 "desc" : "Returns this menu's underlying {@link Roo.Element} object",
262 "sig" : "()\n{\n\n}",
264 "memberOf" : "Roo.menu.Menu",
266 "isConstructor" : false,
278 "type" : "Roo.Element",
279 "desc" : "The element"
286 "desc" : "Inserts an existing object based on {@link Roo.menu.Item} to the menu at a specified index",
287 "sig" : "(index, item)",
289 "memberOf" : "Roo.menu.Menu",
291 "isConstructor" : false,
303 "desc" : "The index in the menu's list of current items where the new item should be inserted",
308 "type" : "Roo.menu.Item",
309 "desc" : "The menu item to add",
316 "type" : "Roo.menu.Item",
317 "desc" : "The menu item that was added"
324 "desc" : "Hides this menu and optionally all parent menus",
327 "memberOf" : "Roo.menu.Menu",
329 "isConstructor" : false,
341 "desc" : "(optional) True to hide all parent menus recursively, if any (defaults to false)",
350 "desc" : "Displays this menu relative to another element",
351 "sig" : "(element, position, parentMenu)",
353 "memberOf" : "Roo.menu.Menu",
355 "isConstructor" : false,
366 "type" : "String/HTMLElement/Roo.Element",
367 "desc" : "The element to align to",
373 "desc" : "(optional) The {@link Roo.Element#alignTo} anchor position to use in aligning to\nthe element (defaults to this.defaultAlign)",
377 "name" : "parentMenu",
378 "type" : "Roo.menu.Menu",
379 "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
388 "desc" : "Creates a new {@link Roo.menu.TextItem} with the supplied text and adds it to the menu",
391 "memberOf" : "Roo.menu.Menu",
393 "isConstructor" : false,
405 "desc" : "The text to display in the menu item",
412 "type" : "Roo.menu.Item",
413 "desc" : "The menu item that was added"
420 "desc" : "Adds an existing object based on {@link Roo.menu.Item} to the menu",
423 "memberOf" : "Roo.menu.Menu",
425 "isConstructor" : false,
436 "type" : "Roo.menu.Item",
437 "desc" : "The menu item to add",
444 "type" : "Roo.menu.Item",
445 "desc" : "The menu item that was added"
452 "desc" : "Displays this menu at a specific xy position",
453 "sig" : "(xyPosition, parentMenu)",
455 "memberOf" : "Roo.menu.Menu",
457 "isConstructor" : false,
467 "name" : "xyPosition",
469 "desc" : "Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)",
473 "name" : "parentMenu",
474 "type" : "Roo.menu.Menu",
475 "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
482 "name" : "purgeListeners",
484 "desc" : "Removes all listeners for this object",
485 "sig" : "()\n{\n\n}",
487 "memberOf" : "Roo.util.Observable",
489 "isConstructor" : false,
503 "desc" : "Appends an event handler to this element (shorthand for addListener)",
504 "sig" : "(eventName, handler, scope, options)",
506 "memberOf" : "Roo.util.Observable",
508 "isConstructor" : false,
518 "name" : "eventName",
520 "desc" : "The type of event to listen for",
526 "desc" : "The method the event invokes",
532 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
538 "desc" : "(optional)",
547 "desc" : "Removes a listener (shorthand for removeListener)",
548 "sig" : "(eventName, handler, scope)",
550 "memberOf" : "Roo.util.Observable",
552 "isConstructor" : false,
562 "name" : "eventName",
564 "desc" : "The type of event to listen for",
570 "desc" : "The handler to remove",
576 "desc" : "(optional) The scope (this object) for the handler",
583 "name" : "addEvents",
585 "desc" : "Used to define events on this Observable",
588 "memberOf" : "Roo.util.Observable",
590 "isConstructor" : false,
602 "desc" : "The object with the events defined",
609 "name" : "releaseCapture",
611 "desc" : "Removes <b>all</b> added captures from the Observable.",
614 "memberOf" : "Roo.util.Observable",
616 "isConstructor" : false,
627 "type" : "Observable",
628 "desc" : "The Observable to release",
635 "name" : "removeListener",
637 "desc" : "Removes a listener",
638 "sig" : "(eventName, handler, scope)",
640 "memberOf" : "Roo.util.Observable",
642 "isConstructor" : false,
652 "name" : "eventName",
654 "desc" : "The type of event to listen for",
660 "desc" : "The handler to remove",
666 "desc" : "(optional) The scope (this object) for the handler",
673 "name" : "fireEvent",
675 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
676 "sig" : "(eventName, args)",
678 "memberOf" : "Roo.util.Observable",
680 "isConstructor" : false,
690 "name" : "eventName",
697 "type" : "Object...",
698 "desc" : "Variable number of parameters are passed to handlers",
706 "desc" : "returns false if any of the handlers return false otherwise it returns true"
711 "name" : "hasListener",
713 "desc" : "Checks to see if this object has any listeners for a specified event",
714 "sig" : "(eventName)",
716 "memberOf" : "Roo.util.Observable",
718 "isConstructor" : false,
728 "name" : "eventName",
730 "desc" : "The name of the event to check for",
738 "desc" : "True if the event is being listened for, else false"
745 "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.",
746 "sig" : "(o, fn, scope)",
748 "memberOf" : "Roo.util.Observable",
750 "isConstructor" : false,
761 "type" : "Observable",
762 "desc" : "The Observable to capture",
768 "desc" : "The function to call",
774 "desc" : "(optional) The scope (this object) for the fn",
781 "name" : "addListener",
783 "desc" : "Appends an event handler to this component",
784 "sig" : "(eventName, handler, scope, options)",
786 "memberOf" : "Roo.util.Observable",
788 "isConstructor" : false,
798 "name" : "eventName",
800 "desc" : "The type of event to listen for",
806 "desc" : "The method the event invokes",
812 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
818 "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>",
830 "sig" : "function (picker, date)\n{\n\n}",
839 "type" : "DatePicker",
853 "name" : "mouseover",
855 "desc" : "Fires when the mouse is hovering over this menu",
856 "sig" : "function (_self, e, menuItem)\n{\n\n}",
857 "memberOf" : "Roo.menu.Menu",
865 "type" : "Roo.menu.Menu",
871 "type" : "Roo.EventObject",
877 "type" : "Roo.menu.Item",
878 "desc" : "The menu item that was clicked",
887 "desc" : "Fires when the mouse exits this menu",
888 "sig" : "function (_self, e, menuItem)\n{\n\n}",
889 "memberOf" : "Roo.menu.Menu",
897 "type" : "Roo.menu.Menu",
903 "type" : "Roo.EventObject",
909 "type" : "Roo.menu.Item",
910 "desc" : "The menu item that was clicked",
917 "name" : "beforehide",
919 "desc" : "Fires before this menu is hidden",
920 "sig" : "function (_self)\n{\n\n}",
921 "memberOf" : "Roo.menu.Menu",
929 "type" : "Roo.menu.Menu",
937 "name" : "itemclick",
939 "desc" : "Fires when a menu item contained in this menu is clicked",
940 "sig" : "function (baseItem, e)\n{\n\n}",
941 "memberOf" : "Roo.menu.Menu",
949 "type" : "Roo.menu.BaseItem",
950 "desc" : "The BaseItem that was clicked",
955 "type" : "Roo.EventObject",
963 "name" : "beforeshow",
965 "desc" : "Fires before this menu is displayed",
966 "sig" : "function (_self)\n{\n\n}",
967 "memberOf" : "Roo.menu.Menu",
975 "type" : "Roo.menu.Menu",
985 "desc" : "Fires after this menu is hidden",
986 "sig" : "function (_self)\n{\n\n}",
987 "memberOf" : "Roo.menu.Menu",
995 "type" : "Roo.menu.Menu",
1004 "type" : "function",
1005 "desc" : "Fires when this menu is clicked (or when the enter key is pressed while it is active)",
1006 "sig" : "function (_self, menuItem, e)\n{\n\n}",
1007 "memberOf" : "Roo.menu.Menu",
1015 "type" : "Roo.menu.Menu",
1017 "isOptional" : false
1020 "name" : "menuItem",
1021 "type" : "Roo.menu.Item",
1022 "desc" : "The menu item that was clicked",
1023 "isOptional" : false
1027 "type" : "Roo.EventObject",
1029 "isOptional" : false
1036 "type" : "function",
1037 "desc" : "Fires after this menu is displayed",
1038 "sig" : "function (_self)\n{\n\n}",
1039 "memberOf" : "Roo.menu.Menu",
1047 "type" : "Roo.menu.Menu",
1049 "isOptional" : false