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",
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",
37 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
38 "memberOf" : "Roo.menu.Item",
44 "desc" : "The text to show on the menu item.",
45 "memberOf" : "Roo.menu.Item",
49 "name" : "activeClass",
51 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
52 "memberOf" : "Roo.menu.BaseItem",
58 "desc" : "True to prevent creation of this menu item (defaults to false)",
59 "memberOf" : "Roo.menu.BaseItem",
65 "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\".",
66 "memberOf" : "Roo.Component",
75 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
76 "memberOf" : "Roo.menu.BaseItem",
82 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
83 "memberOf" : "Roo.menu.BaseItem",
87 "name" : "hideOnClick",
89 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
90 "memberOf" : "Roo.menu.BaseItem",
94 "name" : "allowDomMove",
96 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
97 "memberOf" : "Roo.Component",
103 "desc" : "The default CSS class to use for menu items (defaults to \"x-menu-item\")",
104 "memberOf" : "Roo.menu.Item",
110 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
111 "memberOf" : "Roo.menu.Item",
115 "name" : "actionMode",
117 "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",
118 "memberOf" : "Roo.Component",
122 "name" : "canActivate",
124 "desc" : "True if this item can be visually activated (defaults to true)",
125 "memberOf" : "Roo.menu.Item",
131 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
132 "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",
146 "desc" : "Sets the text to display in this menu item",
148 "isConstructor" : false,
150 "memberOf" : "Roo.menu.Item",
159 "desc" : "The text to display",
165 "desc" : "true to indicate text is pure html.",
173 "desc" : "Returns the id of this component.",
175 "isConstructor" : false,
177 "memberOf" : "Roo.Component",
193 "desc" : "If this is a lazy rendering component, render it to its container element.",
195 "isConstructor" : false,
197 "memberOf" : "Roo.Component",
204 "name" : "container",
205 "type" : "String/HTMLElement/Element",
206 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
214 "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}.",
216 "isConstructor" : false,
218 "memberOf" : "Roo.Component",
227 "name" : "isVisible",
228 "desc" : "Returns true if this component is visible.",
230 "isConstructor" : false,
232 "memberOf" : "Roo.Component",
241 "name" : "setDisabled",
242 "desc" : "Convenience function for setting disabled/enabled by boolean.",
244 "isConstructor" : false,
246 "memberOf" : "Roo.Component",
263 "desc" : "Hide this component.",
265 "isConstructor" : false,
267 "memberOf" : "Roo.Component",
276 "type" : "Roo.Component",
283 "desc" : "Try to focus this component.",
285 "isConstructor" : false,
287 "memberOf" : "Roo.Component",
294 "name" : "selectText",
296 "desc" : "True to also select the text in this component (if applicable)",
303 "type" : "Roo.Component",
310 "desc" : "Show this component.",
312 "isConstructor" : false,
314 "memberOf" : "Roo.Component",
323 "type" : "Roo.Component",
330 "desc" : "Enable this component.",
332 "isConstructor" : false,
334 "memberOf" : "Roo.Component",
343 "type" : "Roo.Component",
349 "name" : "setVisible",
350 "desc" : "Convenience function to hide or show this component by boolean.",
352 "isConstructor" : false,
354 "memberOf" : "Roo.Component",
363 "desc" : "True to show, false to hide",
370 "type" : "Roo.Component",
377 "desc" : "Disable this component.",
379 "isConstructor" : false,
381 "memberOf" : "Roo.Component",
390 "type" : "Roo.Component",
397 "desc" : "Returns the underlying {@link Roo.Element}.",
399 "isConstructor" : false,
401 "memberOf" : "Roo.Component",
410 "type" : "Roo.Element",
411 "desc" : "The element"
416 "name" : "purgeListeners",
417 "desc" : "Removes all listeners for this object",
419 "isConstructor" : false,
421 "memberOf" : "Roo.util.Observable",
431 "desc" : "Appends an event handler to this element (shorthand for addListener)",
433 "isConstructor" : false,
435 "memberOf" : "Roo.util.Observable",
442 "name" : "eventName",
444 "desc" : "The type of event to listen for",
450 "desc" : "The method the event invokes",
456 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
462 "desc" : "(optional)",
470 "desc" : "Removes a listener (shorthand for removeListener)",
472 "isConstructor" : false,
474 "memberOf" : "Roo.util.Observable",
481 "name" : "eventName",
483 "desc" : "The type of event to listen for",
489 "desc" : "The handler to remove",
495 "desc" : "(optional) The scope (this object) for the handler",
502 "name" : "addEvents",
503 "desc" : "Used to define events on this Observable",
505 "isConstructor" : false,
507 "memberOf" : "Roo.util.Observable",
516 "desc" : "The object with the events defined",
523 "name" : "releaseCapture",
524 "desc" : "Removes <b>all</b> added captures from the Observable.",
526 "isConstructor" : false,
528 "memberOf" : "Roo.util.Observable",
536 "type" : "Observable",
537 "desc" : "The Observable to release",
544 "name" : "removeListener",
545 "desc" : "Removes a listener",
547 "isConstructor" : false,
549 "memberOf" : "Roo.util.Observable",
556 "name" : "eventName",
558 "desc" : "The type of event to listen for",
564 "desc" : "The handler to remove",
570 "desc" : "(optional) The scope (this object) for the handler",
577 "name" : "fireEvent",
578 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
580 "isConstructor" : false,
582 "memberOf" : "Roo.util.Observable",
589 "name" : "eventName",
596 "type" : "Object...",
597 "desc" : "Variable number of parameters are passed to handlers",
605 "desc" : "returns false if any of the handlers return false otherwise it returns true"
610 "name" : "hasListener",
611 "desc" : "Checks to see if this object has any listeners for a specified event",
613 "isConstructor" : false,
615 "memberOf" : "Roo.util.Observable",
622 "name" : "eventName",
624 "desc" : "The name of the event to check for",
632 "desc" : "True if the event is being listened for, else false"
638 "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.",
640 "isConstructor" : false,
642 "memberOf" : "Roo.util.Observable",
650 "type" : "Observable",
651 "desc" : "The Observable to capture",
657 "desc" : "The function to call",
663 "desc" : "(optional) The scope (this object) for the fn",
670 "name" : "addListener",
671 "desc" : "Appends an event handler to this component",
673 "isConstructor" : false,
675 "memberOf" : "Roo.util.Observable",
682 "name" : "eventName",
684 "desc" : "The type of event to listen for",
690 "desc" : "The method the event invokes",
696 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
702 "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>",
712 "desc" : "Fires when this item is clicked",
713 "memberOf" : "Roo.menu.BaseItem",
721 "type" : "Roo.menu.BaseItem",
727 "type" : "Roo.EventObject",
736 "desc" : "Fires when this item is activated",
737 "memberOf" : "Roo.menu.BaseItem",
745 "type" : "Roo.menu.BaseItem",
753 "name" : "deactivate",
754 "desc" : "Fires when this item is deactivated",
755 "memberOf" : "Roo.menu.BaseItem",
763 "type" : "Roo.menu.BaseItem",
771 "name" : "beforerender",
772 "desc" : "Fires before the component is rendered. Return false to stop the render.",
773 "memberOf" : "Roo.Component",
781 "type" : "Roo.Component",
790 "desc" : "Fires after the component is disabled.",
791 "memberOf" : "Roo.Component",
799 "type" : "Roo.Component",
808 "desc" : "Fires after the component is rendered.",
809 "memberOf" : "Roo.Component",
817 "type" : "Roo.Component",
826 "desc" : "Fires after the component is destroyed.",
827 "memberOf" : "Roo.Component",
835 "type" : "Roo.Component",
844 "desc" : "Fires after the component is hidden.",
845 "memberOf" : "Roo.Component",
853 "type" : "Roo.Component",
861 "name" : "beforehide",
862 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
863 "memberOf" : "Roo.Component",
871 "type" : "Roo.Component",
880 "desc" : "Fires after the component is shown.",
881 "memberOf" : "Roo.Component",
889 "type" : "Roo.Component",
897 "name" : "beforeshow",
898 "desc" : "Fires before the component is shown. Return false to stop the show.",
899 "memberOf" : "Roo.Component",
907 "type" : "Roo.Component",
916 "desc" : "Fires after the component is enabled.",
917 "memberOf" : "Roo.Component",
925 "type" : "Roo.Component",
933 "name" : "beforedestroy",
934 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
935 "memberOf" : "Roo.Component",
943 "type" : "Roo.Component",