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.",
11 "memberOf" : "BaseItem",
20 "desc" : "Configuration options",
30 "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>",
31 "memberOf" : "Roo.util.Observable",
36 "name" : "activeClass",
38 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
39 "memberOf" : "Roo.menu.BaseItem",
46 "desc" : "True to prevent creation of this menu item (defaults to false)",
47 "memberOf" : "Roo.menu.BaseItem",
54 "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\".",
55 "memberOf" : "Roo.Component",
64 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
65 "memberOf" : "Roo.menu.BaseItem",
72 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
73 "memberOf" : "Roo.menu.BaseItem",
78 "name" : "hideOnClick",
80 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
81 "memberOf" : "Roo.menu.BaseItem",
86 "name" : "allowDomMove",
88 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
89 "memberOf" : "Roo.Component",
94 "name" : "actionMode",
96 "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",
97 "memberOf" : "Roo.Component",
102 "name" : "canActivate",
104 "desc" : "True if this item can be visually activated (defaults to false)",
105 "memberOf" : "Roo.menu.BaseItem",
110 "name" : "disableClass",
112 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
113 "memberOf" : "Roo.Component",
121 "desc" : "Returns the id of this component.",
123 "isConstructor" : false,
125 "memberOf" : "Roo.Component",
142 "desc" : "If this is a lazy rendering component, render it to its container element.",
144 "isConstructor" : false,
146 "memberOf" : "Roo.Component",
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}.",
166 "isConstructor" : false,
168 "memberOf" : "Roo.Component",
179 "name" : "isVisible",
180 "desc" : "Returns true if this component is visible.",
182 "isConstructor" : false,
184 "memberOf" : "Roo.Component",
195 "name" : "setDisabled",
196 "desc" : "Convenience function for setting disabled/enabled by boolean.",
198 "isConstructor" : false,
200 "memberOf" : "Roo.Component",
218 "desc" : "Hide this component.",
220 "isConstructor" : false,
222 "memberOf" : "Roo.Component",
232 "type" : "Roo.Component",
239 "desc" : "Try to focus this component.",
241 "isConstructor" : false,
243 "memberOf" : "Roo.Component",
250 "name" : "selectText",
252 "desc" : "True to also select the text in this component (if applicable)",
259 "type" : "Roo.Component",
266 "desc" : "Show this component.",
268 "isConstructor" : false,
270 "memberOf" : "Roo.Component",
280 "type" : "Roo.Component",
287 "desc" : "Enable this component.",
289 "isConstructor" : false,
291 "memberOf" : "Roo.Component",
301 "type" : "Roo.Component",
307 "name" : "setVisible",
308 "desc" : "Convenience function to hide or show this component by boolean.",
310 "isConstructor" : false,
312 "memberOf" : "Roo.Component",
321 "desc" : "True to show, false to hide",
328 "type" : "Roo.Component",
335 "desc" : "Disable this component.",
337 "isConstructor" : false,
339 "memberOf" : "Roo.Component",
349 "type" : "Roo.Component",
356 "desc" : "Returns the underlying {@link Roo.Element}.",
358 "isConstructor" : false,
360 "memberOf" : "Roo.Component",
370 "type" : "Roo.Element",
371 "desc" : "The element"
376 "name" : "purgeListeners",
377 "desc" : "Removes all listeners for this object",
379 "isConstructor" : false,
381 "memberOf" : "Roo.util.Observable",
393 "desc" : "Appends an event handler to this element (shorthand for addListener)",
395 "isConstructor" : false,
397 "memberOf" : "Roo.util.Observable",
404 "name" : "eventName",
406 "desc" : "The type of event to listen for",
412 "desc" : "The method the event invokes",
418 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
424 "desc" : "(optional)",
433 "desc" : "Removes a listener (shorthand for removeListener)",
435 "isConstructor" : false,
437 "memberOf" : "Roo.util.Observable",
444 "name" : "eventName",
446 "desc" : "The type of event to listen for",
452 "desc" : "The handler to remove",
458 "desc" : "(optional) The scope (this object) for the handler",
466 "name" : "addEvents",
467 "desc" : "Used to define events on this Observable",
469 "isConstructor" : false,
471 "memberOf" : "Roo.util.Observable",
480 "desc" : "The object with the events defined",
488 "name" : "releaseCapture",
489 "desc" : "Removes <b>all</b> added captures from the Observable.",
491 "isConstructor" : false,
493 "memberOf" : "Roo.util.Observable",
501 "type" : "Observable",
502 "desc" : "The Observable to release",
510 "name" : "removeListener",
511 "desc" : "Removes a listener",
513 "isConstructor" : false,
515 "memberOf" : "Roo.util.Observable",
522 "name" : "eventName",
524 "desc" : "The type of event to listen for",
530 "desc" : "The handler to remove",
536 "desc" : "(optional) The scope (this object) for the handler",
544 "name" : "fireEvent",
545 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
547 "isConstructor" : false,
549 "memberOf" : "Roo.util.Observable",
556 "name" : "eventName",
563 "type" : "Object...",
564 "desc" : "Variable number of parameters are passed to handlers",
572 "desc" : "returns false if any of the handlers return false otherwise it returns true"
577 "name" : "hasListener",
578 "desc" : "Checks to see if this object has any listeners for a specified event",
580 "isConstructor" : false,
582 "memberOf" : "Roo.util.Observable",
589 "name" : "eventName",
591 "desc" : "The name of the event to check for",
599 "desc" : "True if the event is being listened for, else false"
605 "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.",
607 "isConstructor" : false,
609 "memberOf" : "Roo.util.Observable",
617 "type" : "Observable",
618 "desc" : "The Observable to capture",
624 "desc" : "The function to call",
630 "desc" : "(optional) The scope (this object) for the fn",
638 "name" : "addListener",
639 "desc" : "Appends an event handler to this component",
641 "isConstructor" : false,
643 "memberOf" : "Roo.util.Observable",
650 "name" : "eventName",
652 "desc" : "The type of event to listen for",
658 "desc" : "The method the event invokes",
664 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
670 "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>",
681 "desc" : "Fires when this item is clicked",
682 "memberOf" : "Roo.menu.BaseItem",
690 "type" : "Roo.menu.BaseItem",
696 "type" : "Roo.EventObject",
706 "desc" : "Fires when this item is activated",
707 "memberOf" : "Roo.menu.BaseItem",
715 "type" : "Roo.menu.BaseItem",
724 "name" : "deactivate",
725 "desc" : "Fires when this item is deactivated",
726 "memberOf" : "Roo.menu.BaseItem",
734 "type" : "Roo.menu.BaseItem",
743 "name" : "beforerender",
744 "desc" : "Fires before the component is rendered. Return false to stop the render.",
745 "memberOf" : "Roo.Component",
753 "type" : "Roo.Component",
763 "desc" : "Fires after the component is disabled.",
764 "memberOf" : "Roo.Component",
772 "type" : "Roo.Component",
782 "desc" : "Fires after the component is rendered.",
783 "memberOf" : "Roo.Component",
791 "type" : "Roo.Component",
801 "desc" : "Fires after the component is destroyed.",
802 "memberOf" : "Roo.Component",
810 "type" : "Roo.Component",
820 "desc" : "Fires after the component is hidden.",
821 "memberOf" : "Roo.Component",
829 "type" : "Roo.Component",
838 "name" : "beforehide",
839 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
840 "memberOf" : "Roo.Component",
848 "type" : "Roo.Component",
858 "desc" : "Fires after the component is shown.",
859 "memberOf" : "Roo.Component",
867 "type" : "Roo.Component",
876 "name" : "beforeshow",
877 "desc" : "Fires before the component is shown. Return false to stop the show.",
878 "memberOf" : "Roo.Component",
886 "type" : "Roo.Component",
896 "desc" : "Fires after the component is enabled.",
897 "memberOf" : "Roo.Component",
905 "type" : "Roo.Component",
914 "name" : "beforedestroy",
915 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
916 "memberOf" : "Roo.Component",
924 "type" : "Roo.Component",