2 "name" : "Roo.menu.Item",
8 "desc" : "A base class for all menu items that require menu-related functionality (like sub-menus) and are not static\ndisplay items. Item extends the base functionality of {@link Roo.menu.BaseItem} by adding menu-specific\nactivation and click handling.",
16 "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>",
17 "memberOf" : "Roo.util.Observable",
24 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
25 "memberOf" : "Roo.menu.Item",
32 "desc" : "The text to show on the menu item.",
33 "memberOf" : "Roo.menu.Item",
38 "name" : "activeClass",
40 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
41 "memberOf" : "Roo.menu.BaseItem",
48 "desc" : "True to prevent creation of this menu item (defaults to false)",
49 "memberOf" : "Roo.menu.BaseItem",
56 "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\".",
57 "memberOf" : "Roo.Component",
66 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
67 "memberOf" : "Roo.menu.BaseItem",
74 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
75 "memberOf" : "Roo.menu.BaseItem",
80 "name" : "hideOnClick",
82 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
83 "memberOf" : "Roo.menu.BaseItem",
88 "name" : "allowDomMove",
90 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
91 "memberOf" : "Roo.Component",
98 "desc" : "The default CSS class to use for menu items (defaults to \"x-menu-item\")",
99 "memberOf" : "Roo.menu.Item",
106 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
107 "memberOf" : "Roo.menu.Item",
112 "name" : "actionMode",
114 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
115 "memberOf" : "Roo.Component",
120 "name" : "canActivate",
122 "desc" : "True if this item can be visually activated (defaults to true)",
123 "memberOf" : "Roo.menu.Item",
130 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
131 "memberOf" : "Roo.menu.Item",
136 "name" : "disableClass",
138 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
139 "memberOf" : "Roo.Component",
147 "desc" : "Sets the text to display in this menu item",
149 "isConstructor" : false,
151 "memberOf" : "Roo.menu.Item",
160 "desc" : "The text to display",
166 "desc" : "true to indicate text is pure html.",
175 "desc" : "Returns the id of this component.",
177 "isConstructor" : false,
179 "memberOf" : "Roo.Component",
196 "desc" : "If this is a lazy rendering component, render it to its container element.",
198 "isConstructor" : false,
200 "memberOf" : "Roo.Component",
207 "name" : "container",
208 "type" : "String/HTMLElement/Element",
209 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
218 "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}.",
220 "isConstructor" : false,
222 "memberOf" : "Roo.Component",
233 "name" : "isVisible",
234 "desc" : "Returns true if this component is visible.",
236 "isConstructor" : false,
238 "memberOf" : "Roo.Component",
249 "name" : "setDisabled",
250 "desc" : "Convenience function for setting disabled/enabled by boolean.",
252 "isConstructor" : false,
254 "memberOf" : "Roo.Component",
272 "desc" : "Hide this component.",
274 "isConstructor" : false,
276 "memberOf" : "Roo.Component",
286 "type" : "Roo.Component",
293 "desc" : "Try to focus this component.",
295 "isConstructor" : false,
297 "memberOf" : "Roo.Component",
304 "name" : "selectText",
306 "desc" : "True to also select the text in this component (if applicable)",
313 "type" : "Roo.Component",
320 "desc" : "Show this component.",
322 "isConstructor" : false,
324 "memberOf" : "Roo.Component",
334 "type" : "Roo.Component",
341 "desc" : "Enable this component.",
343 "isConstructor" : false,
345 "memberOf" : "Roo.Component",
355 "type" : "Roo.Component",
361 "name" : "setVisible",
362 "desc" : "Convenience function to hide or show this component by boolean.",
364 "isConstructor" : false,
366 "memberOf" : "Roo.Component",
375 "desc" : "True to show, false to hide",
382 "type" : "Roo.Component",
389 "desc" : "Disable this component.",
391 "isConstructor" : false,
393 "memberOf" : "Roo.Component",
403 "type" : "Roo.Component",
410 "desc" : "Returns the underlying {@link Roo.Element}.",
412 "isConstructor" : false,
414 "memberOf" : "Roo.Component",
424 "type" : "Roo.Element",
425 "desc" : "The element"
430 "name" : "purgeListeners",
431 "desc" : "Removes all listeners for this object",
433 "isConstructor" : false,
435 "memberOf" : "Roo.util.Observable",
447 "desc" : "Appends an event handler to this element (shorthand for addListener)",
449 "isConstructor" : false,
451 "memberOf" : "Roo.util.Observable",
458 "name" : "eventName",
460 "desc" : "The type of event to listen for",
466 "desc" : "The method the event invokes",
472 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
478 "desc" : "(optional)",
487 "desc" : "Removes a listener (shorthand for removeListener)",
489 "isConstructor" : false,
491 "memberOf" : "Roo.util.Observable",
498 "name" : "eventName",
500 "desc" : "The type of event to listen for",
506 "desc" : "The handler to remove",
512 "desc" : "(optional) The scope (this object) for the handler",
520 "name" : "addEvents",
521 "desc" : "Used to define events on this Observable",
523 "isConstructor" : false,
525 "memberOf" : "Roo.util.Observable",
534 "desc" : "The object with the events defined",
542 "name" : "releaseCapture",
543 "desc" : "Removes <b>all</b> added captures from the Observable.",
545 "isConstructor" : false,
547 "memberOf" : "Roo.util.Observable",
555 "type" : "Observable",
556 "desc" : "The Observable to release",
564 "name" : "removeListener",
565 "desc" : "Removes a listener",
567 "isConstructor" : false,
569 "memberOf" : "Roo.util.Observable",
576 "name" : "eventName",
578 "desc" : "The type of event to listen for",
584 "desc" : "The handler to remove",
590 "desc" : "(optional) The scope (this object) for the handler",
598 "name" : "fireEvent",
599 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
601 "isConstructor" : false,
603 "memberOf" : "Roo.util.Observable",
610 "name" : "eventName",
617 "type" : "Object...",
618 "desc" : "Variable number of parameters are passed to handlers",
626 "desc" : "returns false if any of the handlers return false otherwise it returns true"
631 "name" : "hasListener",
632 "desc" : "Checks to see if this object has any listeners for a specified event",
634 "isConstructor" : false,
636 "memberOf" : "Roo.util.Observable",
643 "name" : "eventName",
645 "desc" : "The name of the event to check for",
653 "desc" : "True if the event is being listened for, else false"
659 "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.",
661 "isConstructor" : false,
663 "memberOf" : "Roo.util.Observable",
671 "type" : "Observable",
672 "desc" : "The Observable to capture",
678 "desc" : "The function to call",
684 "desc" : "(optional) The scope (this object) for the fn",
692 "name" : "addListener",
693 "desc" : "Appends an event handler to this component",
695 "isConstructor" : false,
697 "memberOf" : "Roo.util.Observable",
704 "name" : "eventName",
706 "desc" : "The type of event to listen for",
712 "desc" : "The method the event invokes",
718 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
724 "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>",
735 "desc" : "Fires when this item is clicked",
736 "memberOf" : "Roo.menu.BaseItem",
744 "type" : "Roo.menu.BaseItem",
750 "type" : "Roo.EventObject",
760 "desc" : "Fires when this item is activated",
761 "memberOf" : "Roo.menu.BaseItem",
769 "type" : "Roo.menu.BaseItem",
778 "name" : "deactivate",
779 "desc" : "Fires when this item is deactivated",
780 "memberOf" : "Roo.menu.BaseItem",
788 "type" : "Roo.menu.BaseItem",
797 "name" : "beforerender",
798 "desc" : "Fires before the component is rendered. Return false to stop the render.",
799 "memberOf" : "Roo.Component",
807 "type" : "Roo.Component",
817 "desc" : "Fires after the component is disabled.",
818 "memberOf" : "Roo.Component",
826 "type" : "Roo.Component",
836 "desc" : "Fires after the component is rendered.",
837 "memberOf" : "Roo.Component",
845 "type" : "Roo.Component",
855 "desc" : "Fires after the component is destroyed.",
856 "memberOf" : "Roo.Component",
864 "type" : "Roo.Component",
874 "desc" : "Fires after the component is hidden.",
875 "memberOf" : "Roo.Component",
883 "type" : "Roo.Component",
892 "name" : "beforehide",
893 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
894 "memberOf" : "Roo.Component",
902 "type" : "Roo.Component",
912 "desc" : "Fires after the component is shown.",
913 "memberOf" : "Roo.Component",
921 "type" : "Roo.Component",
930 "name" : "beforeshow",
931 "desc" : "Fires before the component is shown. Return false to stop the show.",
932 "memberOf" : "Roo.Component",
940 "type" : "Roo.Component",
950 "desc" : "Fires after the component is enabled.",
951 "memberOf" : "Roo.Component",
959 "type" : "Roo.Component",
968 "name" : "beforedestroy",
969 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
970 "memberOf" : "Roo.Component",
978 "type" : "Roo.Component",