sync
[roojs1] / docs / symbols / Roo.bootstrap.Menu.json
1 {
2   "name" : "Roo.bootstrap.Menu",
3   "augments" : [
4     "Roo.bootstrap.Component",
5     "Roo.Component",
6     "Roo.util.Observable"
7   ],
8   "desc" : "Bootstrap Menu class - container for MenuItems",
9   "isSingleton" : false,
10   "isStatic" : false,
11   "isBuiltin" : false,
12   "memberOf" : "Menu",
13   "example" : "",
14   "deprecated" : "",
15   "since" : "",
16   "see" : "",
17   "params" : [
18     {
19       "name" : "config",
20       "type" : "Object",
21       "desc" : "The config object",
22       "isOptional" : false
23     }
24   ],
25   "returns" : [
26   ],
27   "config" : [
28     {
29       "name" : "isLink",
30       "type" : "bool",
31       "desc" : "the menu has link disable auto expand and collaspe (default false)",
32       "memberOf" : "Roo.bootstrap.Menu",
33       "values" : [
34         "(true",
35         "false)"
36       ]
37     },
38     {
39       "name" : "listeners",
40       "type" : "Object",
41       "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>",
42       "memberOf" : "Roo.util.Observable",
43       "values" : [
44       ]
45     },
46     {
47       "name" : "tooltip",
48       "type" : "string",
49       "desc" : "Text for the tooltip",
50       "memberOf" : "Roo.bootstrap.Component",
51       "values" : [
52       ]
53     },
54     {
55       "name" : "container_method",
56       "type" : "string",
57       "desc" : "method to fetch parents container element (used by NavHeaderbar -  getHeaderChildContainer)",
58       "memberOf" : "Roo.bootstrap.Component",
59       "values" : [
60       ]
61     },
62     {
63       "name" : "visibilityEl",
64       "type" : "string|object",
65       "desc" : "What element to use for visibility (@see getVisibilityEl())",
66       "memberOf" : "Roo.bootstrap.Component",
67       "values" : [
68         "(el",
69         "parent)"
70       ]
71     },
72     {
73       "name" : "hidden",
74       "type" : "bool",
75       "desc" : "if the menu should be hidden when rendered.",
76       "memberOf" : "Roo.bootstrap.Menu",
77       "values" : [
78       ]
79     },
80     {
81       "name" : "can_build_overlaid",
82       "type" : "Boolean",
83       "desc" : "True if element can be rebuild from a HTML page",
84       "memberOf" : "Roo.bootstrap.Component",
85       "values" : [
86       ]
87     },
88     {
89       "name" : "hideMode",
90       "type" : "String",
91       "desc" : "How this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
92       "memberOf" : "Roo.Component",
93       "values" : [
94         "(display",
95         "visibility)"
96       ]
97     },
98     {
99       "name" : "stopEvent",
100       "type" : "bool",
101       "desc" : "Stop event after trigger press (default true)",
102       "memberOf" : "Roo.bootstrap.Menu",
103       "values" : [
104         "(true",
105         "false)"
106       ]
107     },
108     {
109       "name" : "style",
110       "type" : "String",
111       "desc" : "any extra css",
112       "memberOf" : "Roo.bootstrap.Component",
113       "values" : [
114       ]
115     },
116     {
117       "name" : "allowDomMove",
118       "type" : "Boolean",
119       "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
120       "memberOf" : "Roo.Component",
121       "values" : [
122       ]
123     },
124     {
125       "name" : "cls",
126       "type" : "String",
127       "desc" : "css class",
128       "memberOf" : "Roo.bootstrap.Component",
129       "values" : [
130       ]
131     },
132     {
133       "name" : "xattr",
134       "type" : "Object",
135       "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)",
136       "memberOf" : "Roo.bootstrap.Component",
137       "values" : [
138       ]
139     },
140     {
141       "name" : "actionMode",
142       "type" : "String",
143       "desc" : "which property holds the element that used for  hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl",
144       "memberOf" : "Roo.Component",
145       "values" : [
146       ]
147     },
148     {
149       "name" : "registerMenu",
150       "type" : "Boolean",
151       "desc" : "True (default) - means that clicking on screen etc. hides it.",
152       "memberOf" : "Roo.bootstrap.Menu",
153       "values" : [
154       ]
155     },
156     {
157       "name" : "dataId",
158       "type" : "string",
159       "desc" : "cutomer id",
160       "memberOf" : "Roo.bootstrap.Component",
161       "values" : [
162       ]
163     },
164     {
165       "name" : "type",
166       "type" : "String",
167       "desc" : "type of menu",
168       "memberOf" : "Roo.bootstrap.Menu",
169       "values" : [
170         "(dropdown",
171         "treeview",
172         "submenu)"
173       ]
174     },
175     {
176       "name" : "name",
177       "type" : "string",
178       "desc" : "Specifies name attribute",
179       "memberOf" : "Roo.bootstrap.Component",
180       "values" : [
181       ]
182     },
183     {
184       "name" : "disableClass",
185       "type" : "String",
186       "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
187       "memberOf" : "Roo.Component",
188       "values" : [
189       ]
190     }
191   ],
192   "methods" : [
193     {
194       "name" : "hide",
195       "desc" : "Hides this menu and optionally all parent menus",
196       "isStatic" : false,
197       "isConstructor" : false,
198       "isPrivate" : false,
199       "memberOf" : "Roo.bootstrap.Menu",
200       "example" : "",
201       "deprecated" : "",
202       "since" : "",
203       "see" : "",
204       "params" : [
205         {
206           "name" : "deep",
207           "type" : "Boolean",
208           "desc" : "(optional) True to hide all parent menus recursively, if any (defaults to false)",
209           "isOptional" : false
210         }
211       ],
212       "returns" : [
213       ]
214     },
215     {
216       "name" : "showAt",
217       "desc" : "Displays this menu at a specific xy position",
218       "isStatic" : false,
219       "isConstructor" : false,
220       "isPrivate" : false,
221       "memberOf" : "Roo.bootstrap.Menu",
222       "example" : "",
223       "deprecated" : "",
224       "since" : "",
225       "see" : "",
226       "params" : [
227         {
228           "name" : "xyPosition",
229           "type" : "Array",
230           "desc" : "Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)",
231           "isOptional" : false
232         },
233         {
234           "name" : "parentMenu",
235           "type" : "Roo.menu.Menu",
236           "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
237           "isOptional" : false
238         }
239       ],
240       "returns" : [
241       ]
242     },
243     {
244       "name" : "show",
245       "desc" : "Displays this menu relative to another element",
246       "isStatic" : false,
247       "isConstructor" : false,
248       "isPrivate" : false,
249       "memberOf" : "Roo.bootstrap.Menu",
250       "example" : "",
251       "deprecated" : "",
252       "since" : "",
253       "see" : "",
254       "params" : [
255         {
256           "name" : "element",
257           "type" : "String/HTMLElement/Roo.Element",
258           "desc" : "The element to align to",
259           "isOptional" : false
260         },
261         {
262           "name" : "position",
263           "type" : "String",
264           "desc" : "(optional) The {@link Roo.Element#alignTo} anchor position to use in aligning to\nthe element (defaults to this.defaultAlign)",
265           "isOptional" : false
266         },
267         {
268           "name" : "parentMenu",
269           "type" : "Roo.menu.Menu",
270           "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)",
271           "isOptional" : false
272         }
273       ],
274       "returns" : [
275       ]
276     },
277     {
278       "name" : "tooltipEl",
279       "desc" : "Fetch the element to display the tooltip on.",
280       "isStatic" : false,
281       "isConstructor" : false,
282       "isPrivate" : false,
283       "memberOf" : "Roo.bootstrap.Component",
284       "example" : "",
285       "deprecated" : "",
286       "since" : "",
287       "see" : "",
288       "params" : [
289       ],
290       "returns" : [
291         {
292           "name" : "",
293           "type" : "Roo.Element",
294           "desc" : "defaults to this.el"
295         }
296       ]
297     },
298     {
299       "name" : "setVisibilityEl",
300       "desc" : "Set the element that will be used to show or hide",
301       "isStatic" : false,
302       "isConstructor" : false,
303       "isPrivate" : false,
304       "memberOf" : "Roo.bootstrap.Component",
305       "example" : "",
306       "deprecated" : "",
307       "since" : "",
308       "see" : "",
309       "params" : [
310       ],
311       "returns" : [
312       ]
313     },
314     {
315       "name" : "getVisibilityEl",
316       "desc" : "Get the element that will be used to show or hide",
317       "isStatic" : false,
318       "isConstructor" : false,
319       "isPrivate" : false,
320       "memberOf" : "Roo.bootstrap.Component",
321       "example" : "",
322       "deprecated" : "",
323       "since" : "",
324       "see" : "",
325       "params" : [
326       ],
327       "returns" : [
328       ]
329     },
330     {
331       "name" : "initEvents",
332       "desc" : "Initialize Events for the element",
333       "isStatic" : false,
334       "isConstructor" : false,
335       "isPrivate" : false,
336       "memberOf" : "Roo.bootstrap.Component",
337       "example" : "",
338       "deprecated" : "",
339       "since" : "",
340       "see" : "",
341       "params" : [
342       ],
343       "returns" : [
344       ]
345     },
346     {
347       "name" : "getChildContainer",
348       "desc" : "Fetch the element to add children to",
349       "isStatic" : false,
350       "isConstructor" : false,
351       "isPrivate" : false,
352       "memberOf" : "Roo.bootstrap.Component",
353       "example" : "",
354       "deprecated" : "",
355       "since" : "",
356       "see" : "",
357       "params" : [
358       ],
359       "returns" : [
360         {
361           "name" : "",
362           "type" : "Roo.Element",
363           "desc" : "defaults to this.el"
364         }
365       ]
366     },
367     {
368       "name" : "getId",
369       "desc" : "Returns the id of this component.",
370       "isStatic" : false,
371       "isConstructor" : false,
372       "isPrivate" : false,
373       "memberOf" : "Roo.Component",
374       "example" : "",
375       "deprecated" : "",
376       "since" : "",
377       "see" : "",
378       "params" : [
379       ],
380       "returns" : [
381         {
382           "name" : "",
383           "type" : "String",
384           "desc" : ""
385         }
386       ]
387     },
388     {
389       "name" : "render",
390       "desc" : "If this is a lazy rendering component, render it to its container element.",
391       "isStatic" : false,
392       "isConstructor" : false,
393       "isPrivate" : false,
394       "memberOf" : "Roo.Component",
395       "example" : "",
396       "deprecated" : "",
397       "since" : "",
398       "see" : "",
399       "params" : [
400         {
401           "name" : "container",
402           "type" : "String/HTMLElement/Element",
403           "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
404           "isOptional" : false
405         }
406       ],
407       "returns" : [
408       ]
409     },
410     {
411       "name" : "destroy",
412       "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.",
413       "isStatic" : false,
414       "isConstructor" : false,
415       "isPrivate" : false,
416       "memberOf" : "Roo.Component",
417       "example" : "",
418       "deprecated" : "",
419       "since" : "",
420       "see" : "",
421       "params" : [
422       ],
423       "returns" : [
424       ]
425     },
426     {
427       "name" : "isVisible",
428       "desc" : "Returns true if this component is visible.",
429       "isStatic" : false,
430       "isConstructor" : false,
431       "isPrivate" : false,
432       "memberOf" : "Roo.Component",
433       "example" : "",
434       "deprecated" : "",
435       "since" : "",
436       "see" : "",
437       "params" : [
438       ],
439       "returns" : [
440       ]
441     },
442     {
443       "name" : "setDisabled",
444       "desc" : "Convenience function for setting disabled/enabled by boolean.",
445       "isStatic" : false,
446       "isConstructor" : false,
447       "isPrivate" : false,
448       "memberOf" : "Roo.Component",
449       "example" : "",
450       "deprecated" : "",
451       "since" : "",
452       "see" : "",
453       "params" : [
454         {
455           "name" : "disabled",
456           "type" : "Boolean",
457           "desc" : "",
458           "isOptional" : false
459         }
460       ],
461       "returns" : [
462       ]
463     },
464     {
465       "name" : "focus",
466       "desc" : "Try to focus this component.",
467       "isStatic" : false,
468       "isConstructor" : false,
469       "isPrivate" : false,
470       "memberOf" : "Roo.Component",
471       "example" : "",
472       "deprecated" : "",
473       "since" : "",
474       "see" : "",
475       "params" : [
476         {
477           "name" : "selectText",
478           "type" : "Boolean",
479           "desc" : "True to also select the text in this component (if applicable)",
480           "isOptional" : false
481         }
482       ],
483       "returns" : [
484         {
485           "name" : "",
486           "type" : "Roo.Component",
487           "desc" : "this"
488         }
489       ]
490     },
491     {
492       "name" : "enable",
493       "desc" : "Enable this component.",
494       "isStatic" : false,
495       "isConstructor" : false,
496       "isPrivate" : false,
497       "memberOf" : "Roo.Component",
498       "example" : "",
499       "deprecated" : "",
500       "since" : "",
501       "see" : "",
502       "params" : [
503       ],
504       "returns" : [
505         {
506           "name" : "",
507           "type" : "Roo.Component",
508           "desc" : "this"
509         }
510       ]
511     },
512     {
513       "name" : "setVisible",
514       "desc" : "Convenience function to hide or show this component by boolean.",
515       "isStatic" : false,
516       "isConstructor" : false,
517       "isPrivate" : false,
518       "memberOf" : "Roo.Component",
519       "example" : "",
520       "deprecated" : "",
521       "since" : "",
522       "see" : "",
523       "params" : [
524         {
525           "name" : "visible",
526           "type" : "Boolean",
527           "desc" : "True to show, false to hide",
528           "isOptional" : false
529         }
530       ],
531       "returns" : [
532         {
533           "name" : "",
534           "type" : "Roo.Component",
535           "desc" : "this"
536         }
537       ]
538     },
539     {
540       "name" : "disable",
541       "desc" : "Disable this component.",
542       "isStatic" : false,
543       "isConstructor" : false,
544       "isPrivate" : false,
545       "memberOf" : "Roo.Component",
546       "example" : "",
547       "deprecated" : "",
548       "since" : "",
549       "see" : "",
550       "params" : [
551       ],
552       "returns" : [
553         {
554           "name" : "",
555           "type" : "Roo.Component",
556           "desc" : "this"
557         }
558       ]
559     },
560     {
561       "name" : "getEl",
562       "desc" : "Returns the underlying {@link Roo.Element}.",
563       "isStatic" : false,
564       "isConstructor" : false,
565       "isPrivate" : false,
566       "memberOf" : "Roo.Component",
567       "example" : "",
568       "deprecated" : "",
569       "since" : "",
570       "see" : "",
571       "params" : [
572       ],
573       "returns" : [
574         {
575           "name" : "",
576           "type" : "Roo.Element",
577           "desc" : "The element"
578         }
579       ]
580     },
581     {
582       "name" : "purgeListeners",
583       "desc" : "Removes all listeners for this object",
584       "isStatic" : false,
585       "isConstructor" : false,
586       "isPrivate" : false,
587       "memberOf" : "Roo.util.Observable",
588       "example" : "",
589       "deprecated" : "",
590       "since" : "",
591       "see" : "",
592       "params" : [
593       ],
594       "returns" : [
595       ]
596     },
597     {
598       "name" : "on",
599       "desc" : "Appends an event handler to this element (shorthand for addListener)",
600       "isStatic" : false,
601       "isConstructor" : false,
602       "isPrivate" : false,
603       "memberOf" : "Roo.util.Observable",
604       "example" : "",
605       "deprecated" : "",
606       "since" : "",
607       "see" : "",
608       "params" : [
609         {
610           "name" : "eventName",
611           "type" : "String",
612           "desc" : "The type of event to listen for",
613           "isOptional" : false
614         },
615         {
616           "name" : "handler",
617           "type" : "Function",
618           "desc" : "The method the event invokes",
619           "isOptional" : false
620         },
621         {
622           "name" : "scope",
623           "type" : "Object",
624           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
625           "isOptional" : false
626         },
627         {
628           "name" : "options",
629           "type" : "Object",
630           "desc" : "(optional)",
631           "isOptional" : false
632         }
633       ],
634       "returns" : [
635       ]
636     },
637     {
638       "name" : "un",
639       "desc" : "Removes a listener (shorthand for removeListener)",
640       "isStatic" : false,
641       "isConstructor" : false,
642       "isPrivate" : false,
643       "memberOf" : "Roo.util.Observable",
644       "example" : "",
645       "deprecated" : "",
646       "since" : "",
647       "see" : "",
648       "params" : [
649         {
650           "name" : "eventName",
651           "type" : "String",
652           "desc" : "The type of event to listen for",
653           "isOptional" : false
654         },
655         {
656           "name" : "handler",
657           "type" : "Function",
658           "desc" : "The handler to remove",
659           "isOptional" : false
660         },
661         {
662           "name" : "scope",
663           "type" : "Object",
664           "desc" : "(optional) The scope (this object) for the handler",
665           "isOptional" : false
666         }
667       ],
668       "returns" : [
669       ]
670     },
671     {
672       "name" : "addEvents",
673       "desc" : "Used to define events on this Observable",
674       "isStatic" : false,
675       "isConstructor" : false,
676       "isPrivate" : false,
677       "memberOf" : "Roo.util.Observable",
678       "example" : "",
679       "deprecated" : "",
680       "since" : "",
681       "see" : "",
682       "params" : [
683         {
684           "name" : "object",
685           "type" : "Object",
686           "desc" : "The object with the events defined",
687           "isOptional" : false
688         }
689       ],
690       "returns" : [
691       ]
692     },
693     {
694       "name" : "releaseCapture",
695       "desc" : "Removes <b>all</b> added captures from the Observable.",
696       "isStatic" : true,
697       "isConstructor" : false,
698       "isPrivate" : false,
699       "memberOf" : "Roo.util.Observable",
700       "example" : "",
701       "deprecated" : "",
702       "since" : "",
703       "see" : "",
704       "params" : [
705         {
706           "name" : "o",
707           "type" : "Observable",
708           "desc" : "The Observable to release",
709           "isOptional" : false
710         }
711       ],
712       "returns" : [
713       ]
714     },
715     {
716       "name" : "removeListener",
717       "desc" : "Removes a listener",
718       "isStatic" : false,
719       "isConstructor" : false,
720       "isPrivate" : false,
721       "memberOf" : "Roo.util.Observable",
722       "example" : "",
723       "deprecated" : "",
724       "since" : "",
725       "see" : "",
726       "params" : [
727         {
728           "name" : "eventName",
729           "type" : "String",
730           "desc" : "The type of event to listen for",
731           "isOptional" : false
732         },
733         {
734           "name" : "handler",
735           "type" : "Function",
736           "desc" : "The handler to remove",
737           "isOptional" : false
738         },
739         {
740           "name" : "scope",
741           "type" : "Object",
742           "desc" : "(optional) The scope (this object) for the handler",
743           "isOptional" : false
744         }
745       ],
746       "returns" : [
747       ]
748     },
749     {
750       "name" : "fireEvent",
751       "desc" : "Fires the specified event with the passed parameters (minus the event name).",
752       "isStatic" : false,
753       "isConstructor" : false,
754       "isPrivate" : false,
755       "memberOf" : "Roo.util.Observable",
756       "example" : "",
757       "deprecated" : "",
758       "since" : "",
759       "see" : "",
760       "params" : [
761         {
762           "name" : "eventName",
763           "type" : "String",
764           "desc" : "",
765           "isOptional" : false
766         },
767         {
768           "name" : "args",
769           "type" : "Object...",
770           "desc" : "Variable number of parameters are passed to handlers",
771           "isOptional" : false
772         }
773       ],
774       "returns" : [
775         {
776           "name" : "",
777           "type" : "Boolean",
778           "desc" : "returns false if any of the handlers return false otherwise it returns true"
779         }
780       ]
781     },
782     {
783       "name" : "hasListener",
784       "desc" : "Checks to see if this object has any listeners for a specified event",
785       "isStatic" : false,
786       "isConstructor" : false,
787       "isPrivate" : false,
788       "memberOf" : "Roo.util.Observable",
789       "example" : "",
790       "deprecated" : "",
791       "since" : "",
792       "see" : "",
793       "params" : [
794         {
795           "name" : "eventName",
796           "type" : "String",
797           "desc" : "The name of the event to check for",
798           "isOptional" : false
799         }
800       ],
801       "returns" : [
802         {
803           "name" : "",
804           "type" : "Boolean",
805           "desc" : "True if the event is being listened for, else false"
806         }
807       ]
808     },
809     {
810       "name" : "capture",
811       "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.",
812       "isStatic" : true,
813       "isConstructor" : false,
814       "isPrivate" : false,
815       "memberOf" : "Roo.util.Observable",
816       "example" : "",
817       "deprecated" : "",
818       "since" : "",
819       "see" : "",
820       "params" : [
821         {
822           "name" : "o",
823           "type" : "Observable",
824           "desc" : "The Observable to capture",
825           "isOptional" : false
826         },
827         {
828           "name" : "fn",
829           "type" : "Function",
830           "desc" : "The function to call",
831           "isOptional" : false
832         },
833         {
834           "name" : "scope",
835           "type" : "Object",
836           "desc" : "(optional) The scope (this object) for the fn",
837           "isOptional" : false
838         }
839       ],
840       "returns" : [
841       ]
842     },
843     {
844       "name" : "addListener",
845       "desc" : "Appends an event handler to this component",
846       "isStatic" : false,
847       "isConstructor" : false,
848       "isPrivate" : false,
849       "memberOf" : "Roo.util.Observable",
850       "example" : "",
851       "deprecated" : "",
852       "since" : "",
853       "see" : "",
854       "params" : [
855         {
856           "name" : "eventName",
857           "type" : "String",
858           "desc" : "The type of event to listen for",
859           "isOptional" : false
860         },
861         {
862           "name" : "handler",
863           "type" : "Function",
864           "desc" : "The method the event invokes",
865           "isOptional" : false
866         },
867         {
868           "name" : "scope",
869           "type" : "Object",
870           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
871           "isOptional" : false
872         },
873         {
874           "name" : "options",
875           "type" : "Object",
876           "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>",
877           "isOptional" : false
878         }
879       ],
880       "returns" : [
881       ]
882     }
883   ],
884   "events" : [
885     {
886       "name" : "mouseout",
887       "desc" : "Fires when the mouse exits this menu",
888       "memberOf" : "Roo.bootstrap.Menu",
889       "example" : "",
890       "deprecated" : "",
891       "since" : "",
892       "see" : "",
893       "params" : [
894         {
895           "name" : "this",
896           "type" : "Roo.menu.Menu",
897           "desc" : "",
898           "isOptional" : false
899         },
900         {
901           "name" : "e",
902           "type" : "Roo.EventObject",
903           "desc" : "",
904           "isOptional" : false
905         },
906         {
907           "name" : "menuItem",
908           "type" : "Roo.menu.Item",
909           "desc" : "The menu item that was clicked",
910           "isOptional" : false
911         }
912       ],
913       "returns" : [
914       ]
915     },
916     {
917       "name" : "click",
918       "desc" : "Fires when this menu is clicked (or when the enter key is pressed while it is active)",
919       "memberOf" : "Roo.bootstrap.Menu",
920       "example" : "",
921       "deprecated" : "",
922       "since" : "",
923       "see" : "",
924       "params" : [
925         {
926           "name" : "this",
927           "type" : "Roo.menu.Menu",
928           "desc" : "",
929           "isOptional" : false
930         },
931         {
932           "name" : "menuItem",
933           "type" : "Roo.menu.Item",
934           "desc" : "The menu item that was clicked",
935           "isOptional" : false
936         },
937         {
938           "name" : "e",
939           "type" : "Roo.EventObject",
940           "desc" : "",
941           "isOptional" : false
942         }
943       ],
944       "returns" : [
945       ]
946     },
947     {
948       "name" : "mouseover",
949       "desc" : "Fires when the mouse is hovering over this menu",
950       "memberOf" : "Roo.bootstrap.Menu",
951       "example" : "",
952       "deprecated" : "",
953       "since" : "",
954       "see" : "",
955       "params" : [
956         {
957           "name" : "this",
958           "type" : "Roo.menu.Menu",
959           "desc" : "",
960           "isOptional" : false
961         },
962         {
963           "name" : "e",
964           "type" : "Roo.EventObject",
965           "desc" : "",
966           "isOptional" : false
967         },
968         {
969           "name" : "menuItem",
970           "type" : "Roo.menu.Item",
971           "desc" : "The menu item that was clicked",
972           "isOptional" : false
973         }
974       ],
975       "returns" : [
976       ]
977     },
978     {
979       "name" : "hide",
980       "desc" : "Fires after this menu is hidden",
981       "memberOf" : "Roo.bootstrap.Menu",
982       "example" : "",
983       "deprecated" : "",
984       "since" : "",
985       "see" : "",
986       "params" : [
987         {
988           "name" : "this",
989           "type" : "Roo.menu.Menu",
990           "desc" : "",
991           "isOptional" : false
992         }
993       ],
994       "returns" : [
995       ]
996     },
997     {
998       "name" : "show",
999       "desc" : "Fires after this menu is displayed",
1000       "memberOf" : "Roo.bootstrap.Menu",
1001       "example" : "",
1002       "deprecated" : "",
1003       "since" : "",
1004       "see" : "",
1005       "params" : [
1006         {
1007           "name" : "this",
1008           "type" : "Roo.menu.Menu",
1009           "desc" : "",
1010           "isOptional" : false
1011         }
1012       ],
1013       "returns" : [
1014       ]
1015     },
1016     {
1017       "name" : "beforehide",
1018       "desc" : "Fires before this menu is hidden (return false to block)",
1019       "memberOf" : "Roo.bootstrap.Menu",
1020       "example" : "",
1021       "deprecated" : "",
1022       "since" : "",
1023       "see" : "",
1024       "params" : [
1025         {
1026           "name" : "this",
1027           "type" : "Roo.menu.Menu",
1028           "desc" : "",
1029           "isOptional" : false
1030         }
1031       ],
1032       "returns" : [
1033       ]
1034     },
1035     {
1036       "name" : "itemclick",
1037       "desc" : "Fires when a menu item contained in this menu is clicked",
1038       "memberOf" : "Roo.bootstrap.Menu",
1039       "example" : "",
1040       "deprecated" : "",
1041       "since" : "",
1042       "see" : "",
1043       "params" : [
1044         {
1045           "name" : "baseItem",
1046           "type" : "Roo.menu.BaseItem",
1047           "desc" : "The BaseItem that was clicked",
1048           "isOptional" : false
1049         },
1050         {
1051           "name" : "e",
1052           "type" : "Roo.EventObject",
1053           "desc" : "",
1054           "isOptional" : false
1055         }
1056       ],
1057       "returns" : [
1058       ]
1059     },
1060     {
1061       "name" : "beforeshow",
1062       "desc" : "Fires before this menu is displayed (return false to block)",
1063       "memberOf" : "Roo.bootstrap.Menu",
1064       "example" : "",
1065       "deprecated" : "",
1066       "since" : "",
1067       "see" : "",
1068       "params" : [
1069         {
1070           "name" : "this",
1071           "type" : "Roo.menu.Menu",
1072           "desc" : "",
1073           "isOptional" : false
1074         }
1075       ],
1076       "returns" : [
1077       ]
1078     },
1079     {
1080       "name" : "childrenrendered",
1081       "desc" : "Fires when the children have been rendered..",
1082       "memberOf" : "Roo.bootstrap.Component",
1083       "example" : "",
1084       "deprecated" : "",
1085       "since" : "",
1086       "see" : "",
1087       "params" : [
1088         {
1089           "name" : "this",
1090           "type" : "Roo.bootstrap.Component",
1091           "desc" : "",
1092           "isOptional" : false
1093         }
1094       ],
1095       "returns" : [
1096       ]
1097     },
1098     {
1099       "name" : "beforerender",
1100       "desc" : "Fires before the component is rendered. Return false to stop the render.",
1101       "memberOf" : "Roo.Component",
1102       "example" : "",
1103       "deprecated" : "",
1104       "since" : "",
1105       "see" : "",
1106       "params" : [
1107         {
1108           "name" : "this",
1109           "type" : "Roo.Component",
1110           "desc" : "",
1111           "isOptional" : false
1112         }
1113       ],
1114       "returns" : [
1115       ]
1116     },
1117     {
1118       "name" : "disable",
1119       "desc" : "Fires after the component is disabled.",
1120       "memberOf" : "Roo.Component",
1121       "example" : "",
1122       "deprecated" : "",
1123       "since" : "",
1124       "see" : "",
1125       "params" : [
1126         {
1127           "name" : "this",
1128           "type" : "Roo.Component",
1129           "desc" : "",
1130           "isOptional" : false
1131         }
1132       ],
1133       "returns" : [
1134       ]
1135     },
1136     {
1137       "name" : "render",
1138       "desc" : "Fires after the component is rendered.",
1139       "memberOf" : "Roo.Component",
1140       "example" : "",
1141       "deprecated" : "",
1142       "since" : "",
1143       "see" : "",
1144       "params" : [
1145         {
1146           "name" : "this",
1147           "type" : "Roo.Component",
1148           "desc" : "",
1149           "isOptional" : false
1150         }
1151       ],
1152       "returns" : [
1153       ]
1154     },
1155     {
1156       "name" : "destroy",
1157       "desc" : "Fires after the component is destroyed.",
1158       "memberOf" : "Roo.Component",
1159       "example" : "",
1160       "deprecated" : "",
1161       "since" : "",
1162       "see" : "",
1163       "params" : [
1164         {
1165           "name" : "this",
1166           "type" : "Roo.Component",
1167           "desc" : "",
1168           "isOptional" : false
1169         }
1170       ],
1171       "returns" : [
1172       ]
1173     },
1174     {
1175       "name" : "enable",
1176       "desc" : "Fires after the component is enabled.",
1177       "memberOf" : "Roo.Component",
1178       "example" : "",
1179       "deprecated" : "",
1180       "since" : "",
1181       "see" : "",
1182       "params" : [
1183         {
1184           "name" : "this",
1185           "type" : "Roo.Component",
1186           "desc" : "",
1187           "isOptional" : false
1188         }
1189       ],
1190       "returns" : [
1191       ]
1192     },
1193     {
1194       "name" : "beforedestroy",
1195       "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1196       "memberOf" : "Roo.Component",
1197       "example" : "",
1198       "deprecated" : "",
1199       "since" : "",
1200       "see" : "",
1201       "params" : [
1202         {
1203           "name" : "this",
1204           "type" : "Roo.Component",
1205           "desc" : "",
1206           "isOptional" : false
1207         }
1208       ],
1209       "returns" : [
1210       ]
1211     }
1212   ]
1213 }