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.",
21 "desc" : "Configuration options",
31 "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>",
32 "memberOf" : "Roo.util.Observable",
39 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
40 "memberOf" : "Roo.menu.Item",
47 "desc" : "The text to show on the menu item.",
48 "memberOf" : "Roo.menu.Item",
53 "name" : "activeClass",
55 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
56 "memberOf" : "Roo.menu.BaseItem",
63 "desc" : "True to prevent creation of this menu item (defaults to false)",
64 "memberOf" : "Roo.menu.BaseItem",
71 "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\".",
72 "memberOf" : "Roo.Component",
81 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
82 "memberOf" : "Roo.menu.BaseItem",
89 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
90 "memberOf" : "Roo.menu.BaseItem",
95 "name" : "hideOnClick",
97 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
98 "memberOf" : "Roo.menu.BaseItem",
103 "name" : "allowDomMove",
105 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
106 "memberOf" : "Roo.Component",
113 "desc" : "The default CSS class to use for menu items (defaults to \"x-menu-item\")",
114 "memberOf" : "Roo.menu.Item",
121 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
122 "memberOf" : "Roo.menu.Item",
127 "name" : "actionMode",
129 "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",
130 "memberOf" : "Roo.Component",
135 "name" : "canActivate",
137 "desc" : "True if this item can be visually activated (defaults to true)",
138 "memberOf" : "Roo.menu.Item",
145 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
146 "memberOf" : "Roo.menu.Item",
151 "name" : "disableClass",
153 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
154 "memberOf" : "Roo.Component",
162 "desc" : "Sets the text to display in this menu item",
164 "isConstructor" : false,
166 "memberOf" : "Roo.menu.Item",
175 "desc" : "The text to display",
181 "desc" : "true to indicate text is pure html.",
190 "desc" : "Returns the id of this component.",
192 "isConstructor" : false,
194 "memberOf" : "Roo.Component",
211 "desc" : "If this is a lazy rendering component, render it to its container element.",
213 "isConstructor" : false,
215 "memberOf" : "Roo.Component",
222 "name" : "container",
223 "type" : "String/HTMLElement/Element",
224 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
233 "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}.",
235 "isConstructor" : false,
237 "memberOf" : "Roo.Component",
248 "name" : "isVisible",
249 "desc" : "Returns true if this component is visible.",
251 "isConstructor" : false,
253 "memberOf" : "Roo.Component",
264 "name" : "setDisabled",
265 "desc" : "Convenience function for setting disabled/enabled by boolean.",
267 "isConstructor" : false,
269 "memberOf" : "Roo.Component",
287 "desc" : "Hide this component.",
289 "isConstructor" : false,
291 "memberOf" : "Roo.Component",
301 "type" : "Roo.Component",
308 "desc" : "Try to focus this component.",
310 "isConstructor" : false,
312 "memberOf" : "Roo.Component",
319 "name" : "selectText",
321 "desc" : "True to also select the text in this component (if applicable)",
328 "type" : "Roo.Component",
335 "desc" : "Show this component.",
337 "isConstructor" : false,
339 "memberOf" : "Roo.Component",
349 "type" : "Roo.Component",
356 "desc" : "Enable this component.",
358 "isConstructor" : false,
360 "memberOf" : "Roo.Component",
370 "type" : "Roo.Component",
376 "name" : "setVisible",
377 "desc" : "Convenience function to hide or show this component by boolean.",
379 "isConstructor" : false,
381 "memberOf" : "Roo.Component",
390 "desc" : "True to show, false to hide",
397 "type" : "Roo.Component",
404 "desc" : "Disable this component.",
406 "isConstructor" : false,
408 "memberOf" : "Roo.Component",
418 "type" : "Roo.Component",
425 "desc" : "Returns the underlying {@link Roo.Element}.",
427 "isConstructor" : false,
429 "memberOf" : "Roo.Component",
439 "type" : "Roo.Element",
440 "desc" : "The element"
445 "name" : "purgeListeners",
446 "desc" : "Removes all listeners for this object",
448 "isConstructor" : false,
450 "memberOf" : "Roo.util.Observable",
462 "desc" : "Appends an event handler to this element (shorthand for addListener)",
464 "isConstructor" : false,
466 "memberOf" : "Roo.util.Observable",
473 "name" : "eventName",
475 "desc" : "The type of event to listen for",
481 "desc" : "The method the event invokes",
487 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
493 "desc" : "(optional)",
502 "desc" : "Removes a listener (shorthand for removeListener)",
504 "isConstructor" : false,
506 "memberOf" : "Roo.util.Observable",
513 "name" : "eventName",
515 "desc" : "The type of event to listen for",
521 "desc" : "The handler to remove",
527 "desc" : "(optional) The scope (this object) for the handler",
535 "name" : "addEvents",
536 "desc" : "Used to define events on this Observable",
538 "isConstructor" : false,
540 "memberOf" : "Roo.util.Observable",
549 "desc" : "The object with the events defined",
557 "name" : "releaseCapture",
558 "desc" : "Removes <b>all</b> added captures from the Observable.",
560 "isConstructor" : false,
562 "memberOf" : "Roo.util.Observable",
570 "type" : "Observable",
571 "desc" : "The Observable to release",
579 "name" : "removeListener",
580 "desc" : "Removes a listener",
582 "isConstructor" : false,
584 "memberOf" : "Roo.util.Observable",
591 "name" : "eventName",
593 "desc" : "The type of event to listen for",
599 "desc" : "The handler to remove",
605 "desc" : "(optional) The scope (this object) for the handler",
613 "name" : "fireEvent",
614 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
616 "isConstructor" : false,
618 "memberOf" : "Roo.util.Observable",
625 "name" : "eventName",
632 "type" : "Object...",
633 "desc" : "Variable number of parameters are passed to handlers",
641 "desc" : "returns false if any of the handlers return false otherwise it returns true"
646 "name" : "hasListener",
647 "desc" : "Checks to see if this object has any listeners for a specified event",
649 "isConstructor" : false,
651 "memberOf" : "Roo.util.Observable",
658 "name" : "eventName",
660 "desc" : "The name of the event to check for",
668 "desc" : "True if the event is being listened for, else false"
674 "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.",
676 "isConstructor" : false,
678 "memberOf" : "Roo.util.Observable",
686 "type" : "Observable",
687 "desc" : "The Observable to capture",
693 "desc" : "The function to call",
699 "desc" : "(optional) The scope (this object) for the fn",
707 "name" : "addListener",
708 "desc" : "Appends an event handler to this component",
710 "isConstructor" : false,
712 "memberOf" : "Roo.util.Observable",
719 "name" : "eventName",
721 "desc" : "The type of event to listen for",
727 "desc" : "The method the event invokes",
733 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
739 "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>",
750 "desc" : "Fires when this item is clicked",
751 "memberOf" : "Roo.menu.BaseItem",
759 "type" : "Roo.menu.BaseItem",
765 "type" : "Roo.EventObject",
775 "desc" : "Fires when this item is activated",
776 "memberOf" : "Roo.menu.BaseItem",
784 "type" : "Roo.menu.BaseItem",
793 "name" : "deactivate",
794 "desc" : "Fires when this item is deactivated",
795 "memberOf" : "Roo.menu.BaseItem",
803 "type" : "Roo.menu.BaseItem",
812 "name" : "beforerender",
813 "desc" : "Fires before the component is rendered. Return false to stop the render.",
814 "memberOf" : "Roo.Component",
822 "type" : "Roo.Component",
832 "desc" : "Fires after the component is disabled.",
833 "memberOf" : "Roo.Component",
841 "type" : "Roo.Component",
851 "desc" : "Fires after the component is rendered.",
852 "memberOf" : "Roo.Component",
860 "type" : "Roo.Component",
870 "desc" : "Fires after the component is destroyed.",
871 "memberOf" : "Roo.Component",
879 "type" : "Roo.Component",
889 "desc" : "Fires after the component is hidden.",
890 "memberOf" : "Roo.Component",
898 "type" : "Roo.Component",
907 "name" : "beforehide",
908 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
909 "memberOf" : "Roo.Component",
917 "type" : "Roo.Component",
927 "desc" : "Fires after the component is shown.",
928 "memberOf" : "Roo.Component",
936 "type" : "Roo.Component",
945 "name" : "beforeshow",
946 "desc" : "Fires before the component is shown. Return false to stop the show.",
947 "memberOf" : "Roo.Component",
955 "type" : "Roo.Component",
965 "desc" : "Fires after the component is enabled.",
966 "memberOf" : "Roo.Component",
974 "type" : "Roo.Component",
983 "name" : "beforedestroy",
984 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
985 "memberOf" : "Roo.Component",
993 "type" : "Roo.Component",