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"
54 "name" : "activeClass",
56 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
57 "memberOf" : "Roo.menu.BaseItem"
62 "desc" : "True to prevent creation of this menu item (defaults to false)",
63 "memberOf" : "Roo.menu.BaseItem"
68 "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\".",
69 "memberOf" : "Roo.Component"
74 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
75 "memberOf" : "Roo.menu.BaseItem"
80 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
81 "memberOf" : "Roo.menu.BaseItem"
84 "name" : "hideOnClick",
86 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
87 "memberOf" : "Roo.menu.BaseItem"
90 "name" : "allowDomMove",
92 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
93 "memberOf" : "Roo.Component"
96 "name" : "actionMode",
98 "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",
99 "memberOf" : "Roo.Component"
102 "name" : "canActivate",
104 "desc" : "True if this item can be visually activated (defaults to false)",
105 "memberOf" : "Roo.menu.BaseItem"
108 "name" : "disableClass",
110 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
111 "memberOf" : "Roo.Component"
118 "desc" : "Returns the id of this component.",
119 "sig" : "()\n{\n\n}",
121 "memberOf" : "Roo.Component",
123 "isConstructor" : false,
143 "desc" : "If this is a lazy rendering component, render it to its container element.",
144 "sig" : "(container)",
146 "memberOf" : "Roo.Component",
148 "isConstructor" : false,
158 "name" : "container",
159 "type" : "String/HTMLElement/Element",
160 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
169 "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}.",
170 "sig" : "()\n{\n\n}",
172 "memberOf" : "Roo.Component",
174 "isConstructor" : false,
186 "name" : "isVisible",
188 "desc" : "Returns true if this component is visible.",
189 "sig" : "()\n{\n\n}",
191 "memberOf" : "Roo.Component",
193 "isConstructor" : false,
205 "name" : "setDisabled",
207 "desc" : "Convenience function for setting disabled/enabled by boolean.",
208 "sig" : "(disabled)",
210 "memberOf" : "Roo.Component",
212 "isConstructor" : false,
233 "desc" : "Hide this component.",
234 "sig" : "()\n{\n\n}",
236 "memberOf" : "Roo.Component",
238 "isConstructor" : false,
250 "type" : "Roo.Component",
258 "desc" : "Try to focus this component.",
259 "sig" : "(selectText)",
261 "memberOf" : "Roo.Component",
263 "isConstructor" : false,
273 "name" : "selectText",
275 "desc" : "True to also select the text in this component (if applicable)",
282 "type" : "Roo.Component",
290 "desc" : "Show this component.",
291 "sig" : "()\n{\n\n}",
293 "memberOf" : "Roo.Component",
295 "isConstructor" : false,
307 "type" : "Roo.Component",
315 "desc" : "Enable this component.",
316 "sig" : "()\n{\n\n}",
318 "memberOf" : "Roo.Component",
320 "isConstructor" : false,
332 "type" : "Roo.Component",
338 "name" : "setVisible",
340 "desc" : "Convenience function to hide or show this component by boolean.",
343 "memberOf" : "Roo.Component",
345 "isConstructor" : false,
357 "desc" : "True to show, false to hide",
364 "type" : "Roo.Component",
372 "desc" : "Disable this component.",
373 "sig" : "()\n{\n\n}",
375 "memberOf" : "Roo.Component",
377 "isConstructor" : false,
389 "type" : "Roo.Component",
397 "desc" : "Returns the underlying {@link Roo.Element}.",
398 "sig" : "()\n{\n\n}",
400 "memberOf" : "Roo.Component",
402 "isConstructor" : false,
414 "type" : "Roo.Element",
415 "desc" : "The element"
420 "name" : "purgeListeners",
422 "desc" : "Removes all listeners for this object",
423 "sig" : "()\n{\n\n}",
425 "memberOf" : "Roo.util.Observable",
427 "isConstructor" : false,
441 "desc" : "Appends an event handler to this element (shorthand for addListener)",
442 "sig" : "(eventName, handler, scope, options)",
444 "memberOf" : "Roo.util.Observable",
446 "isConstructor" : false,
456 "name" : "eventName",
458 "desc" : "The type of event to listen for",
464 "desc" : "The method the event invokes",
470 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
476 "desc" : "(optional)",
485 "desc" : "Removes a listener (shorthand for removeListener)",
486 "sig" : "(eventName, handler, scope)",
488 "memberOf" : "Roo.util.Observable",
490 "isConstructor" : false,
500 "name" : "eventName",
502 "desc" : "The type of event to listen for",
508 "desc" : "The handler to remove",
514 "desc" : "(optional) The scope (this object) for the handler",
521 "name" : "addEvents",
523 "desc" : "Used to define events on this Observable",
526 "memberOf" : "Roo.util.Observable",
528 "isConstructor" : false,
540 "desc" : "The object with the events defined",
547 "name" : "releaseCapture",
549 "desc" : "Removes <b>all</b> added captures from the Observable.",
552 "memberOf" : "Roo.util.Observable",
554 "isConstructor" : false,
565 "type" : "Observable",
566 "desc" : "The Observable to release",
573 "name" : "removeListener",
575 "desc" : "Removes a listener",
576 "sig" : "(eventName, handler, scope)",
578 "memberOf" : "Roo.util.Observable",
580 "isConstructor" : false,
590 "name" : "eventName",
592 "desc" : "The type of event to listen for",
598 "desc" : "The handler to remove",
604 "desc" : "(optional) The scope (this object) for the handler",
611 "name" : "fireEvent",
613 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
614 "sig" : "(eventName, args)",
616 "memberOf" : "Roo.util.Observable",
618 "isConstructor" : false,
628 "name" : "eventName",
635 "type" : "Object...",
636 "desc" : "Variable number of parameters are passed to handlers",
644 "desc" : "returns false if any of the handlers return false otherwise it returns true"
649 "name" : "hasListener",
651 "desc" : "Checks to see if this object has any listeners for a specified event",
652 "sig" : "(eventName)",
654 "memberOf" : "Roo.util.Observable",
656 "isConstructor" : false,
666 "name" : "eventName",
668 "desc" : "The name of the event to check for",
676 "desc" : "True if the event is being listened for, else false"
683 "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.",
684 "sig" : "(o, fn, scope)",
686 "memberOf" : "Roo.util.Observable",
688 "isConstructor" : false,
699 "type" : "Observable",
700 "desc" : "The Observable to capture",
706 "desc" : "The function to call",
712 "desc" : "(optional) The scope (this object) for the fn",
719 "name" : "addListener",
721 "desc" : "Appends an event handler to this component",
722 "sig" : "(eventName, handler, scope, options)",
724 "memberOf" : "Roo.util.Observable",
726 "isConstructor" : false,
736 "name" : "eventName",
738 "desc" : "The type of event to listen for",
744 "desc" : "The method the event invokes",
750 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
756 "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>",
767 "desc" : "Fires when this item is clicked",
768 "sig" : "function (_self, e)\n{\n\n}",
777 "type" : "Roo.menu.BaseItem",
783 "type" : "Roo.EventObject",
793 "desc" : "Fires when this item is activated",
794 "sig" : "function (_self)\n{\n\n}",
803 "type" : "Roo.menu.BaseItem",
811 "name" : "deactivate",
813 "desc" : "Fires when this item is deactivated",
814 "sig" : "function (_self)\n{\n\n}",
823 "type" : "Roo.menu.BaseItem",
831 "name" : "beforerender",
833 "desc" : "Fires before the component is rendered. Return false to stop the render.",
834 "sig" : "function (_self)\n{\n\n}",
835 "memberOf" : "Roo.Component",
843 "type" : "Roo.Component",
853 "desc" : "Fires after the component is disabled.",
854 "sig" : "function (_self)\n{\n\n}",
855 "memberOf" : "Roo.Component",
863 "type" : "Roo.Component",
873 "desc" : "Fires after the component is rendered.",
874 "sig" : "function (_self)\n{\n\n}",
875 "memberOf" : "Roo.Component",
883 "type" : "Roo.Component",
893 "desc" : "Fires after the component is destroyed.",
894 "sig" : "function (_self)\n{\n\n}",
895 "memberOf" : "Roo.Component",
903 "type" : "Roo.Component",
913 "desc" : "Fires after the component is hidden.",
914 "sig" : "function (_self)\n{\n\n}",
915 "memberOf" : "Roo.Component",
923 "type" : "Roo.Component",
931 "name" : "beforehide",
933 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
934 "sig" : "function (_self)\n{\n\n}",
935 "memberOf" : "Roo.Component",
943 "type" : "Roo.Component",
953 "desc" : "Fires after the component is shown.",
954 "sig" : "function (_self)\n{\n\n}",
955 "memberOf" : "Roo.Component",
963 "type" : "Roo.Component",
971 "name" : "beforeshow",
973 "desc" : "Fires before the component is shown. Return false to stop the show.",
974 "sig" : "function (_self)\n{\n\n}",
975 "memberOf" : "Roo.Component",
983 "type" : "Roo.Component",
993 "desc" : "Fires after the component is enabled.",
994 "sig" : "function (_self)\n{\n\n}",
995 "memberOf" : "Roo.Component",
1003 "type" : "Roo.Component",
1005 "isOptional" : false
1011 "name" : "beforedestroy",
1012 "type" : "function",
1013 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1014 "sig" : "function (_self)\n{\n\n}",
1015 "memberOf" : "Roo.Component",
1023 "type" : "Roo.Component",
1025 "isOptional" : false