2 "name" : "Roo.menu.BaseItem",
7 "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.",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
21 "name" : "activeClass",
23 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
24 "memberOf" : "Roo.menu.BaseItem",
31 "desc" : "True to prevent creation of this menu item (defaults to false)",
32 "memberOf" : "Roo.menu.BaseItem",
39 "desc" : "How this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
40 "memberOf" : "Roo.Component",
49 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
50 "memberOf" : "Roo.menu.BaseItem",
57 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
58 "memberOf" : "Roo.menu.BaseItem",
63 "name" : "hideOnClick",
65 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
66 "memberOf" : "Roo.menu.BaseItem",
71 "name" : "allowDomMove",
73 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
74 "memberOf" : "Roo.Component",
79 "name" : "actionMode",
81 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
82 "memberOf" : "Roo.Component",
87 "name" : "canActivate",
89 "desc" : "True if this item can be visually activated (defaults to false)",
90 "memberOf" : "Roo.menu.BaseItem",
95 "name" : "disableClass",
97 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
98 "memberOf" : "Roo.Component",
106 "desc" : "Returns the id of this component.",
108 "isConstructor" : false,
110 "memberOf" : "Roo.Component",
127 "desc" : "If this is a lazy rendering component, render it to its container element.",
129 "isConstructor" : false,
131 "memberOf" : "Roo.Component",
138 "name" : "container",
139 "type" : "String/HTMLElement/Element",
140 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
149 "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}.",
151 "isConstructor" : false,
153 "memberOf" : "Roo.Component",
164 "name" : "isVisible",
165 "desc" : "Returns true if this component is visible.",
167 "isConstructor" : false,
169 "memberOf" : "Roo.Component",
180 "name" : "setDisabled",
181 "desc" : "Convenience function for setting disabled/enabled by boolean.",
183 "isConstructor" : false,
185 "memberOf" : "Roo.Component",
203 "desc" : "Hide this component.",
205 "isConstructor" : false,
207 "memberOf" : "Roo.Component",
217 "type" : "Roo.Component",
224 "desc" : "Try to focus this component.",
226 "isConstructor" : false,
228 "memberOf" : "Roo.Component",
235 "name" : "selectText",
237 "desc" : "True to also select the text in this component (if applicable)",
244 "type" : "Roo.Component",
251 "desc" : "Show this component.",
253 "isConstructor" : false,
255 "memberOf" : "Roo.Component",
265 "type" : "Roo.Component",
272 "desc" : "Enable this component.",
274 "isConstructor" : false,
276 "memberOf" : "Roo.Component",
286 "type" : "Roo.Component",
292 "name" : "setVisible",
293 "desc" : "Convenience function to hide or show this component by boolean.",
295 "isConstructor" : false,
297 "memberOf" : "Roo.Component",
306 "desc" : "True to show, false to hide",
313 "type" : "Roo.Component",
320 "desc" : "Disable this component.",
322 "isConstructor" : false,
324 "memberOf" : "Roo.Component",
334 "type" : "Roo.Component",
341 "desc" : "Returns the underlying {@link Roo.Element}.",
343 "isConstructor" : false,
345 "memberOf" : "Roo.Component",
355 "type" : "Roo.Element",
356 "desc" : "The element"
361 "name" : "purgeListeners",
362 "desc" : "Removes all listeners for this object",
364 "isConstructor" : false,
366 "memberOf" : "Roo.util.Observable",
378 "desc" : "Appends an event handler to this element (shorthand for addListener)",
380 "isConstructor" : false,
382 "memberOf" : "Roo.util.Observable",
389 "name" : "eventName",
391 "desc" : "The type of event to listen for",
397 "desc" : "The method the event invokes",
403 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
409 "desc" : "(optional)",
418 "desc" : "Removes a listener (shorthand for removeListener)",
420 "isConstructor" : false,
422 "memberOf" : "Roo.util.Observable",
429 "name" : "eventName",
431 "desc" : "The type of event to listen for",
437 "desc" : "The handler to remove",
443 "desc" : "(optional) The scope (this object) for the handler",
451 "name" : "addEvents",
452 "desc" : "Used to define events on this Observable",
454 "isConstructor" : false,
456 "memberOf" : "Roo.util.Observable",
465 "desc" : "The object with the events defined",
473 "name" : "releaseCapture",
474 "desc" : "Removes <b>all</b> added captures from the Observable.",
476 "isConstructor" : false,
478 "memberOf" : "Roo.util.Observable",
486 "type" : "Observable",
487 "desc" : "The Observable to release",
495 "name" : "removeListener",
496 "desc" : "Removes a listener",
498 "isConstructor" : false,
500 "memberOf" : "Roo.util.Observable",
507 "name" : "eventName",
509 "desc" : "The type of event to listen for",
515 "desc" : "The handler to remove",
521 "desc" : "(optional) The scope (this object) for the handler",
529 "name" : "fireEvent",
530 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
532 "isConstructor" : false,
534 "memberOf" : "Roo.util.Observable",
541 "name" : "eventName",
548 "type" : "Object...",
549 "desc" : "Variable number of parameters are passed to handlers",
557 "desc" : "returns false if any of the handlers return false otherwise it returns true"
562 "name" : "hasListener",
563 "desc" : "Checks to see if this object has any listeners for a specified event",
565 "isConstructor" : false,
567 "memberOf" : "Roo.util.Observable",
574 "name" : "eventName",
576 "desc" : "The name of the event to check for",
584 "desc" : "True if the event is being listened for, else false"
590 "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.",
592 "isConstructor" : false,
594 "memberOf" : "Roo.util.Observable",
602 "type" : "Observable",
603 "desc" : "The Observable to capture",
609 "desc" : "The function to call",
615 "desc" : "(optional) The scope (this object) for the fn",
623 "name" : "addListener",
624 "desc" : "Appends an event handler to this component",
626 "isConstructor" : false,
628 "memberOf" : "Roo.util.Observable",
635 "name" : "eventName",
637 "desc" : "The type of event to listen for",
643 "desc" : "The method the event invokes",
649 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
655 "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>",
666 "desc" : "Fires when this item is clicked",
675 "type" : "Roo.menu.BaseItem",
681 "type" : "Roo.EventObject",
691 "desc" : "Fires when this item is activated",
700 "type" : "Roo.menu.BaseItem",
709 "name" : "deactivate",
710 "desc" : "Fires when this item is deactivated",
719 "type" : "Roo.menu.BaseItem",
728 "name" : "beforerender",
729 "desc" : "Fires before the component is rendered. Return false to stop the render.",
730 "memberOf" : "Roo.Component",
738 "type" : "Roo.Component",
748 "desc" : "Fires after the component is disabled.",
749 "memberOf" : "Roo.Component",
757 "type" : "Roo.Component",
767 "desc" : "Fires after the component is rendered.",
768 "memberOf" : "Roo.Component",
776 "type" : "Roo.Component",
786 "desc" : "Fires after the component is destroyed.",
787 "memberOf" : "Roo.Component",
795 "type" : "Roo.Component",
805 "desc" : "Fires after the component is hidden.",
806 "memberOf" : "Roo.Component",
814 "type" : "Roo.Component",
823 "name" : "beforehide",
824 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
825 "memberOf" : "Roo.Component",
833 "type" : "Roo.Component",
843 "desc" : "Fires after the component is shown.",
844 "memberOf" : "Roo.Component",
852 "type" : "Roo.Component",
861 "name" : "beforeshow",
862 "desc" : "Fires before the component is shown. Return false to stop the show.",
863 "memberOf" : "Roo.Component",
871 "type" : "Roo.Component",
881 "desc" : "Fires after the component is enabled.",
882 "memberOf" : "Roo.Component",
890 "type" : "Roo.Component",
899 "name" : "beforedestroy",
900 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
901 "memberOf" : "Roo.Component",
909 "type" : "Roo.Component",