2 "name" : "Roo.menu.TextItem",
9 "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.",
10 "isSingleton" : false,
13 "memberOf" : "TextItem",
22 "desc" : "Configuration",
33 "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>",
34 "memberOf" : "Roo.util.Observable"
39 "desc" : "Text to show on item.",
43 "name" : "activeClass",
45 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
46 "memberOf" : "Roo.menu.BaseItem"
51 "desc" : "True to prevent creation of this menu item (defaults to false)",
52 "memberOf" : "Roo.menu.BaseItem"
57 "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\".",
58 "memberOf" : "Roo.Component"
61 "name" : "hideOnClick",
63 "desc" : "True to hide the containing menu after this item is clicked (defaults to false)",
69 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
70 "memberOf" : "Roo.menu.BaseItem"
75 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
76 "memberOf" : "Roo.menu.BaseItem"
79 "name" : "allowDomMove",
81 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
82 "memberOf" : "Roo.Component"
87 "desc" : "The default CSS class to use for text items (defaults to \"x-menu-text\")",
91 "name" : "actionMode",
93 "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",
94 "memberOf" : "Roo.Component"
97 "name" : "canActivate",
99 "desc" : "True if this item can be visually activated (defaults to false)",
100 "memberOf" : "Roo.menu.BaseItem"
103 "name" : "disableClass",
105 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
106 "memberOf" : "Roo.Component"
113 "desc" : "Returns the id of this component.",
114 "sig" : "()\n{\n\n}",
116 "memberOf" : "Roo.Component",
118 "isConstructor" : false,
138 "desc" : "If this is a lazy rendering component, render it to its container element.",
139 "sig" : "(container)",
141 "memberOf" : "Roo.Component",
143 "isConstructor" : false,
153 "name" : "container",
154 "type" : "String/HTMLElement/Element",
155 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
164 "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}.",
165 "sig" : "()\n{\n\n}",
167 "memberOf" : "Roo.Component",
169 "isConstructor" : false,
181 "name" : "isVisible",
183 "desc" : "Returns true if this component is visible.",
184 "sig" : "()\n{\n\n}",
186 "memberOf" : "Roo.Component",
188 "isConstructor" : false,
200 "name" : "setDisabled",
202 "desc" : "Convenience function for setting disabled/enabled by boolean.",
203 "sig" : "(disabled)",
205 "memberOf" : "Roo.Component",
207 "isConstructor" : false,
228 "desc" : "Hide this component.",
229 "sig" : "()\n{\n\n}",
231 "memberOf" : "Roo.Component",
233 "isConstructor" : false,
245 "type" : "Roo.Component",
253 "desc" : "Try to focus this component.",
254 "sig" : "(selectText)",
256 "memberOf" : "Roo.Component",
258 "isConstructor" : false,
268 "name" : "selectText",
270 "desc" : "True to also select the text in this component (if applicable)",
277 "type" : "Roo.Component",
285 "desc" : "Show this component.",
286 "sig" : "()\n{\n\n}",
288 "memberOf" : "Roo.Component",
290 "isConstructor" : false,
302 "type" : "Roo.Component",
310 "desc" : "Enable this component.",
311 "sig" : "()\n{\n\n}",
313 "memberOf" : "Roo.Component",
315 "isConstructor" : false,
327 "type" : "Roo.Component",
333 "name" : "setVisible",
335 "desc" : "Convenience function to hide or show this component by boolean.",
338 "memberOf" : "Roo.Component",
340 "isConstructor" : false,
352 "desc" : "True to show, false to hide",
359 "type" : "Roo.Component",
367 "desc" : "Disable this component.",
368 "sig" : "()\n{\n\n}",
370 "memberOf" : "Roo.Component",
372 "isConstructor" : false,
384 "type" : "Roo.Component",
392 "desc" : "Returns the underlying {@link Roo.Element}.",
393 "sig" : "()\n{\n\n}",
395 "memberOf" : "Roo.Component",
397 "isConstructor" : false,
409 "type" : "Roo.Element",
410 "desc" : "The element"
415 "name" : "purgeListeners",
417 "desc" : "Removes all listeners for this object",
418 "sig" : "()\n{\n\n}",
420 "memberOf" : "Roo.util.Observable",
422 "isConstructor" : false,
436 "desc" : "Appends an event handler to this element (shorthand for addListener)",
437 "sig" : "(eventName, handler, scope, options)",
439 "memberOf" : "Roo.util.Observable",
441 "isConstructor" : false,
451 "name" : "eventName",
453 "desc" : "The type of event to listen for",
459 "desc" : "The method the event invokes",
465 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
471 "desc" : "(optional)",
480 "desc" : "Removes a listener (shorthand for removeListener)",
481 "sig" : "(eventName, handler, scope)",
483 "memberOf" : "Roo.util.Observable",
485 "isConstructor" : false,
495 "name" : "eventName",
497 "desc" : "The type of event to listen for",
503 "desc" : "The handler to remove",
509 "desc" : "(optional) The scope (this object) for the handler",
516 "name" : "addEvents",
518 "desc" : "Used to define events on this Observable",
521 "memberOf" : "Roo.util.Observable",
523 "isConstructor" : false,
535 "desc" : "The object with the events defined",
542 "name" : "releaseCapture",
544 "desc" : "Removes <b>all</b> added captures from the Observable.",
547 "memberOf" : "Roo.util.Observable",
549 "isConstructor" : false,
560 "type" : "Observable",
561 "desc" : "The Observable to release",
568 "name" : "removeListener",
570 "desc" : "Removes a listener",
571 "sig" : "(eventName, handler, scope)",
573 "memberOf" : "Roo.util.Observable",
575 "isConstructor" : false,
585 "name" : "eventName",
587 "desc" : "The type of event to listen for",
593 "desc" : "The handler to remove",
599 "desc" : "(optional) The scope (this object) for the handler",
606 "name" : "fireEvent",
608 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
609 "sig" : "(eventName, args)",
611 "memberOf" : "Roo.util.Observable",
613 "isConstructor" : false,
623 "name" : "eventName",
630 "type" : "Object...",
631 "desc" : "Variable number of parameters are passed to handlers",
639 "desc" : "returns false if any of the handlers return false otherwise it returns true"
644 "name" : "hasListener",
646 "desc" : "Checks to see if this object has any listeners for a specified event",
647 "sig" : "(eventName)",
649 "memberOf" : "Roo.util.Observable",
651 "isConstructor" : false,
661 "name" : "eventName",
663 "desc" : "The name of the event to check for",
671 "desc" : "True if the event is being listened for, else false"
678 "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.",
679 "sig" : "(o, fn, scope)",
681 "memberOf" : "Roo.util.Observable",
683 "isConstructor" : false,
694 "type" : "Observable",
695 "desc" : "The Observable to capture",
701 "desc" : "The function to call",
707 "desc" : "(optional) The scope (this object) for the fn",
714 "name" : "addListener",
716 "desc" : "Appends an event handler to this component",
717 "sig" : "(eventName, handler, scope, options)",
719 "memberOf" : "Roo.util.Observable",
721 "isConstructor" : false,
731 "name" : "eventName",
733 "desc" : "The type of event to listen for",
739 "desc" : "The method the event invokes",
745 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
751 "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>",
762 "desc" : "Fires when this item is clicked",
763 "sig" : "function (_self, e)\n{\n\n}",
764 "memberOf" : "Roo.menu.BaseItem",
772 "type" : "Roo.menu.BaseItem",
778 "type" : "Roo.EventObject",
788 "desc" : "Fires when this item is activated",
789 "sig" : "function (_self)\n{\n\n}",
790 "memberOf" : "Roo.menu.BaseItem",
798 "type" : "Roo.menu.BaseItem",
806 "name" : "deactivate",
808 "desc" : "Fires when this item is deactivated",
809 "sig" : "function (_self)\n{\n\n}",
810 "memberOf" : "Roo.menu.BaseItem",
818 "type" : "Roo.menu.BaseItem",
826 "name" : "beforerender",
828 "desc" : "Fires before the component is rendered. Return false to stop the render.",
829 "sig" : "function (_self)\n{\n\n}",
830 "memberOf" : "Roo.Component",
838 "type" : "Roo.Component",
848 "desc" : "Fires after the component is disabled.",
849 "sig" : "function (_self)\n{\n\n}",
850 "memberOf" : "Roo.Component",
858 "type" : "Roo.Component",
868 "desc" : "Fires after the component is rendered.",
869 "sig" : "function (_self)\n{\n\n}",
870 "memberOf" : "Roo.Component",
878 "type" : "Roo.Component",
888 "desc" : "Fires after the component is destroyed.",
889 "sig" : "function (_self)\n{\n\n}",
890 "memberOf" : "Roo.Component",
898 "type" : "Roo.Component",
908 "desc" : "Fires after the component is hidden.",
909 "sig" : "function (_self)\n{\n\n}",
910 "memberOf" : "Roo.Component",
918 "type" : "Roo.Component",
926 "name" : "beforehide",
928 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
929 "sig" : "function (_self)\n{\n\n}",
930 "memberOf" : "Roo.Component",
938 "type" : "Roo.Component",
948 "desc" : "Fires after the component is shown.",
949 "sig" : "function (_self)\n{\n\n}",
950 "memberOf" : "Roo.Component",
958 "type" : "Roo.Component",
966 "name" : "beforeshow",
968 "desc" : "Fires before the component is shown. Return false to stop the show.",
969 "sig" : "function (_self)\n{\n\n}",
970 "memberOf" : "Roo.Component",
978 "type" : "Roo.Component",
988 "desc" : "Fires after the component is enabled.",
989 "sig" : "function (_self)\n{\n\n}",
990 "memberOf" : "Roo.Component",
998 "type" : "Roo.Component",
1000 "isOptional" : false
1006 "name" : "beforedestroy",
1007 "type" : "function",
1008 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1009 "sig" : "function (_self)\n{\n\n}",
1010 "memberOf" : "Roo.Component",
1018 "type" : "Roo.Component",
1020 "isOptional" : false