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"
43 "desc" : "Text to show on item.",
47 "name" : "activeClass",
49 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
50 "memberOf" : "Roo.menu.BaseItem"
55 "desc" : "True to prevent creation of this menu item (defaults to false)",
56 "memberOf" : "Roo.menu.BaseItem"
61 "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\".",
62 "memberOf" : "Roo.Component"
65 "name" : "hideOnClick",
67 "desc" : "True to hide the containing menu after this item is clicked (defaults to false)",
73 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
74 "memberOf" : "Roo.menu.BaseItem"
79 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
80 "memberOf" : "Roo.menu.BaseItem"
83 "name" : "allowDomMove",
85 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
86 "memberOf" : "Roo.Component"
91 "desc" : "The default CSS class to use for text items (defaults to \"x-menu-text\")",
95 "name" : "actionMode",
97 "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",
98 "memberOf" : "Roo.Component"
101 "name" : "canActivate",
103 "desc" : "True if this item can be visually activated (defaults to false)",
104 "memberOf" : "Roo.menu.BaseItem"
107 "name" : "disableClass",
109 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
110 "memberOf" : "Roo.Component"
117 "desc" : "Returns the id of this component.",
118 "sig" : "()\n{\n\n}",
120 "memberOf" : "Roo.Component",
122 "isConstructor" : false,
142 "desc" : "If this is a lazy rendering component, render it to its container element.",
143 "sig" : "(container)",
145 "memberOf" : "Roo.Component",
147 "isConstructor" : false,
157 "name" : "container",
158 "type" : "String/HTMLElement/Element",
159 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
168 "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}.",
169 "sig" : "()\n{\n\n}",
171 "memberOf" : "Roo.Component",
173 "isConstructor" : false,
185 "name" : "isVisible",
187 "desc" : "Returns true if this component is visible.",
188 "sig" : "()\n{\n\n}",
190 "memberOf" : "Roo.Component",
192 "isConstructor" : false,
204 "name" : "setDisabled",
206 "desc" : "Convenience function for setting disabled/enabled by boolean.",
207 "sig" : "(disabled)",
209 "memberOf" : "Roo.Component",
211 "isConstructor" : false,
232 "desc" : "Hide this component.",
233 "sig" : "()\n{\n\n}",
235 "memberOf" : "Roo.Component",
237 "isConstructor" : false,
249 "type" : "Roo.Component",
257 "desc" : "Try to focus this component.",
258 "sig" : "(selectText)",
260 "memberOf" : "Roo.Component",
262 "isConstructor" : false,
272 "name" : "selectText",
274 "desc" : "True to also select the text in this component (if applicable)",
281 "type" : "Roo.Component",
289 "desc" : "Show this component.",
290 "sig" : "()\n{\n\n}",
292 "memberOf" : "Roo.Component",
294 "isConstructor" : false,
306 "type" : "Roo.Component",
314 "desc" : "Enable this component.",
315 "sig" : "()\n{\n\n}",
317 "memberOf" : "Roo.Component",
319 "isConstructor" : false,
331 "type" : "Roo.Component",
337 "name" : "setVisible",
339 "desc" : "Convenience function to hide or show this component by boolean.",
342 "memberOf" : "Roo.Component",
344 "isConstructor" : false,
356 "desc" : "True to show, false to hide",
363 "type" : "Roo.Component",
371 "desc" : "Disable this component.",
372 "sig" : "()\n{\n\n}",
374 "memberOf" : "Roo.Component",
376 "isConstructor" : false,
388 "type" : "Roo.Component",
396 "desc" : "Returns the underlying {@link Roo.Element}.",
397 "sig" : "()\n{\n\n}",
399 "memberOf" : "Roo.Component",
401 "isConstructor" : false,
413 "type" : "Roo.Element",
414 "desc" : "The element"
419 "name" : "purgeListeners",
421 "desc" : "Removes all listeners for this object",
422 "sig" : "()\n{\n\n}",
424 "memberOf" : "Roo.util.Observable",
426 "isConstructor" : false,
440 "desc" : "Appends an event handler to this element (shorthand for addListener)",
441 "sig" : "(eventName, handler, scope, options)",
443 "memberOf" : "Roo.util.Observable",
445 "isConstructor" : false,
455 "name" : "eventName",
457 "desc" : "The type of event to listen for",
463 "desc" : "The method the event invokes",
469 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
475 "desc" : "(optional)",
484 "desc" : "Removes a listener (shorthand for removeListener)",
485 "sig" : "(eventName, handler, scope)",
487 "memberOf" : "Roo.util.Observable",
489 "isConstructor" : false,
499 "name" : "eventName",
501 "desc" : "The type of event to listen for",
507 "desc" : "The handler to remove",
513 "desc" : "(optional) The scope (this object) for the handler",
520 "name" : "addEvents",
522 "desc" : "Used to define events on this Observable",
525 "memberOf" : "Roo.util.Observable",
527 "isConstructor" : false,
539 "desc" : "The object with the events defined",
546 "name" : "releaseCapture",
548 "desc" : "Removes <b>all</b> added captures from the Observable.",
551 "memberOf" : "Roo.util.Observable",
553 "isConstructor" : false,
564 "type" : "Observable",
565 "desc" : "The Observable to release",
572 "name" : "removeListener",
574 "desc" : "Removes a listener",
575 "sig" : "(eventName, handler, scope)",
577 "memberOf" : "Roo.util.Observable",
579 "isConstructor" : false,
589 "name" : "eventName",
591 "desc" : "The type of event to listen for",
597 "desc" : "The handler to remove",
603 "desc" : "(optional) The scope (this object) for the handler",
610 "name" : "fireEvent",
612 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
613 "sig" : "(eventName, args)",
615 "memberOf" : "Roo.util.Observable",
617 "isConstructor" : false,
627 "name" : "eventName",
634 "type" : "Object...",
635 "desc" : "Variable number of parameters are passed to handlers",
643 "desc" : "returns false if any of the handlers return false otherwise it returns true"
648 "name" : "hasListener",
650 "desc" : "Checks to see if this object has any listeners for a specified event",
651 "sig" : "(eventName)",
653 "memberOf" : "Roo.util.Observable",
655 "isConstructor" : false,
665 "name" : "eventName",
667 "desc" : "The name of the event to check for",
675 "desc" : "True if the event is being listened for, else false"
682 "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.",
683 "sig" : "(o, fn, scope)",
685 "memberOf" : "Roo.util.Observable",
687 "isConstructor" : false,
698 "type" : "Observable",
699 "desc" : "The Observable to capture",
705 "desc" : "The function to call",
711 "desc" : "(optional) The scope (this object) for the fn",
718 "name" : "addListener",
720 "desc" : "Appends an event handler to this component",
721 "sig" : "(eventName, handler, scope, options)",
723 "memberOf" : "Roo.util.Observable",
725 "isConstructor" : false,
735 "name" : "eventName",
737 "desc" : "The type of event to listen for",
743 "desc" : "The method the event invokes",
749 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
755 "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>",
766 "desc" : "Fires when this item is clicked",
767 "sig" : "function (_self, e)\n{\n\n}",
768 "memberOf" : "Roo.menu.BaseItem",
776 "type" : "Roo.menu.BaseItem",
782 "type" : "Roo.EventObject",
792 "desc" : "Fires when this item is activated",
793 "sig" : "function (_self)\n{\n\n}",
794 "memberOf" : "Roo.menu.BaseItem",
802 "type" : "Roo.menu.BaseItem",
810 "name" : "deactivate",
812 "desc" : "Fires when this item is deactivated",
813 "sig" : "function (_self)\n{\n\n}",
814 "memberOf" : "Roo.menu.BaseItem",
822 "type" : "Roo.menu.BaseItem",
830 "name" : "beforerender",
832 "desc" : "Fires before the component is rendered. Return false to stop the render.",
833 "sig" : "function (_self)\n{\n\n}",
834 "memberOf" : "Roo.Component",
842 "type" : "Roo.Component",
852 "desc" : "Fires after the component is disabled.",
853 "sig" : "function (_self)\n{\n\n}",
854 "memberOf" : "Roo.Component",
862 "type" : "Roo.Component",
872 "desc" : "Fires after the component is rendered.",
873 "sig" : "function (_self)\n{\n\n}",
874 "memberOf" : "Roo.Component",
882 "type" : "Roo.Component",
892 "desc" : "Fires after the component is destroyed.",
893 "sig" : "function (_self)\n{\n\n}",
894 "memberOf" : "Roo.Component",
902 "type" : "Roo.Component",
912 "desc" : "Fires after the component is hidden.",
913 "sig" : "function (_self)\n{\n\n}",
914 "memberOf" : "Roo.Component",
922 "type" : "Roo.Component",
930 "name" : "beforehide",
932 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
933 "sig" : "function (_self)\n{\n\n}",
934 "memberOf" : "Roo.Component",
942 "type" : "Roo.Component",
952 "desc" : "Fires after the component is shown.",
953 "sig" : "function (_self)\n{\n\n}",
954 "memberOf" : "Roo.Component",
962 "type" : "Roo.Component",
970 "name" : "beforeshow",
972 "desc" : "Fires before the component is shown. Return false to stop the show.",
973 "sig" : "function (_self)\n{\n\n}",
974 "memberOf" : "Roo.Component",
982 "type" : "Roo.Component",
992 "desc" : "Fires after the component is enabled.",
993 "sig" : "function (_self)\n{\n\n}",
994 "memberOf" : "Roo.Component",
1002 "type" : "Roo.Component",
1004 "isOptional" : false
1010 "name" : "beforedestroy",
1011 "type" : "function",
1012 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1013 "sig" : "function (_self)\n{\n\n}",
1014 "memberOf" : "Roo.Component",
1022 "type" : "Roo.Component",
1024 "isOptional" : false