2 "name" : "Roo.menu.BaseItem",
8 "Roo.menu.BaseItem" : [
14 "Roo.menu.Adapter" : [
24 "desc" : "The base class for all items that render into menus. BaseItem provides default rendering, activated state\nmanagement and base configuration options shared by all menu components.",
25 "isSingleton" : false,
29 "isBuilderTop" : false,
30 "memberOf" : "BaseItem",
39 "desc" : "Configuration options",
50 "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>",
51 "memberOf" : "Roo.util.Observable",
56 "name" : "activeClass",
58 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
66 "desc" : "True to prevent creation of this menu item (defaults to false)",
74 "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",
75 "memberOf" : "Roo.Component",
85 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
93 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
99 "name" : "hideOnClick",
101 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
103 "isOptional" : false,
109 "desc" : "css styles to add to component\neg. text-align:right;",
110 "memberOf" : "Roo.Component",
111 "isOptional" : false,
115 "name" : "allowDomMove",
117 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
118 "memberOf" : "Roo.Component",
119 "isOptional" : false,
123 "name" : "actionMode",
125 "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",
126 "memberOf" : "Roo.Component",
127 "isOptional" : false,
131 "name" : "canActivate",
133 "desc" : "True if this item can be visually activated (defaults to false)",
135 "isOptional" : false,
139 "name" : "disableClass",
141 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
142 "memberOf" : "Roo.Component",
143 "isOptional" : false,
151 "desc" : "Returns the id of this component.",
152 "sig" : "()\n{\n\n}",
154 "memberOf" : "Roo.Component",
156 "isConstructor" : false,
176 "desc" : "If this is a lazy rendering component, render it to its container element.",
177 "sig" : "(container)",
179 "memberOf" : "Roo.Component",
181 "isConstructor" : false,
191 "name" : "container",
192 "type" : "String/HTMLElement/Element",
193 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
202 "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}.",
203 "sig" : "()\n{\n\n}",
205 "memberOf" : "Roo.Component",
207 "isConstructor" : false,
219 "name" : "isVisible",
221 "desc" : "Returns true if this component is visible.",
222 "sig" : "()\n{\n\n}",
224 "memberOf" : "Roo.Component",
226 "isConstructor" : false,
238 "name" : "setDisabled",
240 "desc" : "Convenience function for setting disabled/enabled by boolean.",
241 "sig" : "(disabled)",
243 "memberOf" : "Roo.Component",
245 "isConstructor" : false,
266 "desc" : "Hide this component.",
267 "sig" : "()\n{\n\n}",
269 "memberOf" : "Roo.Component",
271 "isConstructor" : false,
283 "type" : "Roo.Component",
291 "desc" : "Try to focus this component.",
292 "sig" : "(selectText)",
294 "memberOf" : "Roo.Component",
296 "isConstructor" : false,
306 "name" : "selectText",
308 "desc" : "True to also select the text in this component (if applicable)",
315 "type" : "Roo.Component",
323 "desc" : "Show this component.",
324 "sig" : "()\n{\n\n}",
326 "memberOf" : "Roo.Component",
328 "isConstructor" : false,
340 "type" : "Roo.Component",
348 "desc" : "Enable this component.",
349 "sig" : "()\n{\n\n}",
351 "memberOf" : "Roo.Component",
353 "isConstructor" : false,
365 "type" : "Roo.Component",
371 "name" : "setVisible",
373 "desc" : "Convenience function to hide or show this component by boolean.",
376 "memberOf" : "Roo.Component",
378 "isConstructor" : false,
390 "desc" : "True to show, false to hide",
397 "type" : "Roo.Component",
405 "desc" : "Disable this component.",
406 "sig" : "()\n{\n\n}",
408 "memberOf" : "Roo.Component",
410 "isConstructor" : false,
422 "type" : "Roo.Component",
430 "desc" : "Returns the underlying {@link Roo.Element}.",
431 "sig" : "()\n{\n\n}",
433 "memberOf" : "Roo.Component",
435 "isConstructor" : false,
447 "type" : "Roo.Element",
448 "desc" : "The element"
453 "name" : "purgeListeners",
455 "desc" : "Removes all listeners for this object",
456 "sig" : "()\n{\n\n}",
458 "memberOf" : "Roo.util.Observable",
460 "isConstructor" : false,
474 "desc" : "Appends an event handler to this element (shorthand for addListener)",
475 "sig" : "(eventName, handler, scope, options)",
477 "memberOf" : "Roo.util.Observable",
479 "isConstructor" : false,
489 "name" : "eventName",
491 "desc" : "The type of event to listen for",
497 "desc" : "The method the event invokes",
503 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
509 "desc" : "(optional)",
518 "desc" : "Removes a listener (shorthand for removeListener)",
519 "sig" : "(eventName, handler, scope)",
521 "memberOf" : "Roo.util.Observable",
523 "isConstructor" : false,
533 "name" : "eventName",
535 "desc" : "The type of event to listen for",
541 "desc" : "The handler to remove",
547 "desc" : "(optional) The scope (this object) for the handler",
554 "name" : "addEvents",
556 "desc" : "Used to define events on this Observable",
559 "memberOf" : "Roo.util.Observable",
561 "isConstructor" : false,
573 "desc" : "The object with the events defined",
580 "name" : "releaseCapture",
582 "desc" : "Removes <b>all</b> added captures from the Observable.",
585 "memberOf" : "Roo.util.Observable",
587 "isConstructor" : false,
598 "type" : "Observable",
599 "desc" : "The Observable to release",
606 "name" : "removeListener",
608 "desc" : "Removes a listener",
609 "sig" : "(eventName, handler, scope)",
611 "memberOf" : "Roo.util.Observable",
613 "isConstructor" : false,
623 "name" : "eventName",
625 "desc" : "The type of event to listen for",
631 "desc" : "The handler to remove",
637 "desc" : "(optional) The scope (this object) for the handler",
644 "name" : "fireEvent",
646 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
647 "sig" : "(eventName, args)",
649 "memberOf" : "Roo.util.Observable",
651 "isConstructor" : false,
661 "name" : "eventName",
668 "type" : "Object...",
669 "desc" : "Variable number of parameters are passed to handlers",
677 "desc" : "returns false if any of the handlers return false otherwise it returns true"
682 "name" : "hasListener",
684 "desc" : "Checks to see if this object has any listeners for a specified event",
685 "sig" : "(eventName)",
687 "memberOf" : "Roo.util.Observable",
689 "isConstructor" : false,
699 "name" : "eventName",
701 "desc" : "The name of the event to check for",
709 "desc" : "True if the event is being listened for, else false"
716 "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.",
717 "sig" : "(o, fn, scope)",
719 "memberOf" : "Roo.util.Observable",
721 "isConstructor" : false,
732 "type" : "Observable",
733 "desc" : "The Observable to capture",
739 "desc" : "The function to call",
745 "desc" : "(optional) The scope (this object) for the fn",
752 "name" : "addListener",
754 "desc" : "Appends an event handler to this component",
755 "sig" : "(eventName, handler, scope, options)",
757 "memberOf" : "Roo.util.Observable",
759 "isConstructor" : false,
769 "name" : "eventName",
771 "desc" : "The type of event to listen for",
777 "desc" : "The method the event invokes",
783 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
789 "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>",
800 "desc" : "Fires when this item is clicked",
801 "sig" : "function (_self, e)\n{\n\n}",
810 "type" : "Roo.menu.BaseItem",
816 "type" : "Roo.EventObject",
826 "desc" : "Fires when this item is activated",
827 "sig" : "function (_self)\n{\n\n}",
836 "type" : "Roo.menu.BaseItem",
844 "name" : "deactivate",
846 "desc" : "Fires when this item is deactivated",
847 "sig" : "function (_self)\n{\n\n}",
856 "type" : "Roo.menu.BaseItem",
864 "name" : "beforerender",
866 "desc" : "Fires before the component is rendered. Return false to stop the render.",
867 "sig" : "function (_self)\n{\n\n}",
868 "memberOf" : "Roo.Component",
876 "type" : "Roo.Component",
886 "desc" : "Fires after the component is disabled.",
887 "sig" : "function (_self)\n{\n\n}",
888 "memberOf" : "Roo.Component",
896 "type" : "Roo.Component",
906 "desc" : "Fires after the component is rendered.",
907 "sig" : "function (_self)\n{\n\n}",
908 "memberOf" : "Roo.Component",
916 "type" : "Roo.Component",
926 "desc" : "Fires after the component is destroyed.",
927 "sig" : "function (_self)\n{\n\n}",
928 "memberOf" : "Roo.Component",
936 "type" : "Roo.Component",
946 "desc" : "Fires after the component is hidden.",
947 "sig" : "function (_self)\n{\n\n}",
948 "memberOf" : "Roo.Component",
956 "type" : "Roo.Component",
964 "name" : "beforehide",
966 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
967 "sig" : "function (_self)\n{\n\n}",
968 "memberOf" : "Roo.Component",
976 "type" : "Roo.Component",
986 "desc" : "Fires after the component is shown.",
987 "sig" : "function (_self)\n{\n\n}",
988 "memberOf" : "Roo.Component",
996 "type" : "Roo.Component",
1004 "name" : "beforeshow",
1005 "type" : "function",
1006 "desc" : "Fires before the component is shown. Return false to stop the show.",
1007 "sig" : "function (_self)\n{\n\n}",
1008 "memberOf" : "Roo.Component",
1016 "type" : "Roo.Component",
1018 "isOptional" : false
1025 "type" : "function",
1026 "desc" : "Fires after the component is enabled.",
1027 "sig" : "function (_self)\n{\n\n}",
1028 "memberOf" : "Roo.Component",
1036 "type" : "Roo.Component",
1038 "isOptional" : false
1044 "name" : "beforedestroy",
1045 "type" : "function",
1046 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1047 "sig" : "function (_self)\n{\n\n}",
1048 "memberOf" : "Roo.Component",
1056 "type" : "Roo.Component",
1058 "isOptional" : false