2 "name" : "Roo.menu.TextItem",
11 "desc" : "Adds a static text string to a menu, usually used as either a heading or group separator.\nNote: old style constructor with text is still supported.",
12 "isSingleton" : false,
16 "isBuilderTop" : false,
17 "memberOf" : "TextItem",
26 "desc" : "Configuration",
37 "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>",
38 "memberOf" : "Roo.util.Observable",
45 "desc" : "Text to show on item.",
51 "name" : "activeClass",
53 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
54 "memberOf" : "Roo.menu.BaseItem",
61 "desc" : "True to prevent creation of this menu item (defaults to false)",
62 "memberOf" : "Roo.menu.BaseItem",
69 "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display",
70 "memberOf" : "Roo.Component",
78 "name" : "hideOnClick",
80 "desc" : "True to hide the containing menu after this item is clicked (defaults to false)",
88 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
89 "memberOf" : "Roo.menu.BaseItem",
96 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
97 "memberOf" : "Roo.menu.BaseItem",
104 "desc" : "css styles to add to component\neg. text-align:right;",
105 "memberOf" : "Roo.Component",
106 "isOptional" : false,
110 "name" : "allowDomMove",
112 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
113 "memberOf" : "Roo.Component",
114 "isOptional" : false,
120 "desc" : "The default CSS class to use for text items (defaults to \"x-menu-text\")",
122 "isOptional" : false,
126 "name" : "actionMode",
128 "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",
129 "memberOf" : "Roo.Component",
130 "isOptional" : false,
134 "name" : "canActivate",
136 "desc" : "True if this item can be visually activated (defaults to false)",
137 "memberOf" : "Roo.menu.BaseItem",
138 "isOptional" : false,
142 "name" : "disableClass",
144 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
145 "memberOf" : "Roo.Component",
146 "isOptional" : false,
154 "desc" : "Returns the id of this component.",
155 "sig" : "()\n{\n\n}",
157 "memberOf" : "Roo.Component",
159 "isConstructor" : false,
179 "desc" : "If this is a lazy rendering component, render it to its container element.",
180 "sig" : "(container)",
182 "memberOf" : "Roo.Component",
184 "isConstructor" : false,
194 "name" : "container",
195 "type" : "String/HTMLElement/Element",
196 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
205 "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}.",
206 "sig" : "()\n{\n\n}",
208 "memberOf" : "Roo.Component",
210 "isConstructor" : false,
222 "name" : "isVisible",
224 "desc" : "Returns true if this component is visible.",
225 "sig" : "()\n{\n\n}",
227 "memberOf" : "Roo.Component",
229 "isConstructor" : false,
241 "name" : "setDisabled",
243 "desc" : "Convenience function for setting disabled/enabled by boolean.",
244 "sig" : "(disabled)",
246 "memberOf" : "Roo.Component",
248 "isConstructor" : false,
269 "desc" : "Hide this component.",
270 "sig" : "()\n{\n\n}",
272 "memberOf" : "Roo.Component",
274 "isConstructor" : false,
286 "type" : "Roo.Component",
294 "desc" : "Try to focus this component.",
295 "sig" : "(selectText)",
297 "memberOf" : "Roo.Component",
299 "isConstructor" : false,
309 "name" : "selectText",
311 "desc" : "True to also select the text in this component (if applicable)",
318 "type" : "Roo.Component",
326 "desc" : "Show this component.",
327 "sig" : "()\n{\n\n}",
329 "memberOf" : "Roo.Component",
331 "isConstructor" : false,
343 "type" : "Roo.Component",
351 "desc" : "Enable this component.",
352 "sig" : "()\n{\n\n}",
354 "memberOf" : "Roo.Component",
356 "isConstructor" : false,
368 "type" : "Roo.Component",
374 "name" : "setVisible",
376 "desc" : "Convenience function to hide or show this component by boolean.",
379 "memberOf" : "Roo.Component",
381 "isConstructor" : false,
393 "desc" : "True to show, false to hide",
400 "type" : "Roo.Component",
408 "desc" : "Disable this component.",
409 "sig" : "()\n{\n\n}",
411 "memberOf" : "Roo.Component",
413 "isConstructor" : false,
425 "type" : "Roo.Component",
433 "desc" : "Returns the underlying {@link Roo.Element}.",
434 "sig" : "()\n{\n\n}",
436 "memberOf" : "Roo.Component",
438 "isConstructor" : false,
450 "type" : "Roo.Element",
451 "desc" : "The element"
456 "name" : "purgeListeners",
458 "desc" : "Removes all listeners for this object",
459 "sig" : "()\n{\n\n}",
461 "memberOf" : "Roo.util.Observable",
463 "isConstructor" : false,
477 "desc" : "Appends an event handler to this element (shorthand for addListener)",
478 "sig" : "(eventName, handler, scope, options)",
480 "memberOf" : "Roo.util.Observable",
482 "isConstructor" : false,
492 "name" : "eventName",
494 "desc" : "The type of event to listen for",
500 "desc" : "The method the event invokes",
506 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
512 "desc" : "(optional)",
521 "desc" : "Removes a listener (shorthand for removeListener)",
522 "sig" : "(eventName, handler, scope)",
524 "memberOf" : "Roo.util.Observable",
526 "isConstructor" : false,
536 "name" : "eventName",
538 "desc" : "The type of event to listen for",
544 "desc" : "The handler to remove",
550 "desc" : "(optional) The scope (this object) for the handler",
557 "name" : "addEvents",
559 "desc" : "Used to define events on this Observable",
562 "memberOf" : "Roo.util.Observable",
564 "isConstructor" : false,
576 "desc" : "The object with the events defined",
583 "name" : "releaseCapture",
585 "desc" : "Removes <b>all</b> added captures from the Observable.",
588 "memberOf" : "Roo.util.Observable",
590 "isConstructor" : false,
601 "type" : "Observable",
602 "desc" : "The Observable to release",
609 "name" : "removeListener",
611 "desc" : "Removes a listener",
612 "sig" : "(eventName, handler, scope)",
614 "memberOf" : "Roo.util.Observable",
616 "isConstructor" : false,
626 "name" : "eventName",
628 "desc" : "The type of event to listen for",
634 "desc" : "The handler to remove",
640 "desc" : "(optional) The scope (this object) for the handler",
647 "name" : "fireEvent",
649 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
650 "sig" : "(eventName, args)",
652 "memberOf" : "Roo.util.Observable",
654 "isConstructor" : false,
664 "name" : "eventName",
671 "type" : "Object...",
672 "desc" : "Variable number of parameters are passed to handlers",
680 "desc" : "returns false if any of the handlers return false otherwise it returns true"
685 "name" : "hasListener",
687 "desc" : "Checks to see if this object has any listeners for a specified event",
688 "sig" : "(eventName)",
690 "memberOf" : "Roo.util.Observable",
692 "isConstructor" : false,
702 "name" : "eventName",
704 "desc" : "The name of the event to check for",
712 "desc" : "True if the event is being listened for, else false"
719 "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.",
720 "sig" : "(o, fn, scope)",
722 "memberOf" : "Roo.util.Observable",
724 "isConstructor" : false,
735 "type" : "Observable",
736 "desc" : "The Observable to capture",
742 "desc" : "The function to call",
748 "desc" : "(optional) The scope (this object) for the fn",
755 "name" : "addListener",
757 "desc" : "Appends an event handler to this component",
758 "sig" : "(eventName, handler, scope, options)",
760 "memberOf" : "Roo.util.Observable",
762 "isConstructor" : false,
772 "name" : "eventName",
774 "desc" : "The type of event to listen for",
780 "desc" : "The method the event invokes",
786 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
792 "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>",
803 "desc" : "Fires when this item is clicked",
804 "sig" : "function (_self, e)\n{\n\n}",
805 "memberOf" : "Roo.menu.BaseItem",
813 "type" : "Roo.menu.BaseItem",
819 "type" : "Roo.EventObject",
829 "desc" : "Fires when this item is activated",
830 "sig" : "function (_self)\n{\n\n}",
831 "memberOf" : "Roo.menu.BaseItem",
839 "type" : "Roo.menu.BaseItem",
847 "name" : "deactivate",
849 "desc" : "Fires when this item is deactivated",
850 "sig" : "function (_self)\n{\n\n}",
851 "memberOf" : "Roo.menu.BaseItem",
859 "type" : "Roo.menu.BaseItem",
867 "name" : "beforerender",
869 "desc" : "Fires before the component is rendered. Return false to stop the render.",
870 "sig" : "function (_self)\n{\n\n}",
871 "memberOf" : "Roo.Component",
879 "type" : "Roo.Component",
889 "desc" : "Fires after the component is disabled.",
890 "sig" : "function (_self)\n{\n\n}",
891 "memberOf" : "Roo.Component",
899 "type" : "Roo.Component",
909 "desc" : "Fires after the component is rendered.",
910 "sig" : "function (_self)\n{\n\n}",
911 "memberOf" : "Roo.Component",
919 "type" : "Roo.Component",
929 "desc" : "Fires after the component is destroyed.",
930 "sig" : "function (_self)\n{\n\n}",
931 "memberOf" : "Roo.Component",
939 "type" : "Roo.Component",
949 "desc" : "Fires after the component is hidden.",
950 "sig" : "function (_self)\n{\n\n}",
951 "memberOf" : "Roo.Component",
959 "type" : "Roo.Component",
967 "name" : "beforehide",
969 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
970 "sig" : "function (_self)\n{\n\n}",
971 "memberOf" : "Roo.Component",
979 "type" : "Roo.Component",
989 "desc" : "Fires after the component is shown.",
990 "sig" : "function (_self)\n{\n\n}",
991 "memberOf" : "Roo.Component",
999 "type" : "Roo.Component",
1001 "isOptional" : false
1007 "name" : "beforeshow",
1008 "type" : "function",
1009 "desc" : "Fires before the component is shown. Return false to stop the show.",
1010 "sig" : "function (_self)\n{\n\n}",
1011 "memberOf" : "Roo.Component",
1019 "type" : "Roo.Component",
1021 "isOptional" : false
1028 "type" : "function",
1029 "desc" : "Fires after the component is enabled.",
1030 "sig" : "function (_self)\n{\n\n}",
1031 "memberOf" : "Roo.Component",
1039 "type" : "Roo.Component",
1041 "isOptional" : false
1047 "name" : "beforedestroy",
1048 "type" : "function",
1049 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1050 "sig" : "function (_self)\n{\n\n}",
1051 "memberOf" : "Roo.Component",
1059 "type" : "Roo.Component",
1061 "isOptional" : false