2 "name" : "Roo.menu.Item",
15 "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 "isSingleton" : false,
20 "isBuilderTop" : false,
30 "desc" : "Configuration options",
41 "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>",
42 "memberOf" : "Roo.util.Observable",
49 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
57 "desc" : "The text to show on the menu item.",
64 "type" : "Roo.menu.Menu",
65 "desc" : "A Sub menu",
71 "name" : "activeClass",
73 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
74 "memberOf" : "Roo.menu.BaseItem",
81 "desc" : "True to prevent creation of this menu item (defaults to false)",
82 "memberOf" : "Roo.menu.BaseItem",
89 "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",
90 "memberOf" : "Roo.Component",
100 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
101 "memberOf" : "Roo.menu.BaseItem",
102 "isOptional" : false,
106 "name" : "hideDelay",
108 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
109 "memberOf" : "Roo.menu.BaseItem",
110 "isOptional" : false,
114 "name" : "hideOnClick",
116 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
117 "memberOf" : "Roo.menu.BaseItem",
118 "isOptional" : false,
122 "name" : "allowDomMove",
124 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
125 "memberOf" : "Roo.Component",
126 "isOptional" : false,
132 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
134 "isOptional" : false,
140 "desc" : "The default CSS class to use for menu items (defaults to \"x-menu-item\")",
142 "isOptional" : false,
146 "name" : "actionMode",
148 "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",
149 "memberOf" : "Roo.Component",
150 "isOptional" : false,
154 "name" : "canActivate",
156 "desc" : "True if this item can be visually activated (defaults to true)",
158 "isOptional" : false,
164 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
166 "isOptional" : false,
170 "name" : "disableClass",
172 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
173 "memberOf" : "Roo.Component",
174 "isOptional" : false,
182 "desc" : "Sets the text to display in this menu item",
183 "sig" : "(text, isHTML)",
187 "isConstructor" : false,
199 "desc" : "The text to display",
205 "desc" : "true to indicate text is pure html.",
214 "desc" : "Returns the id of this component.",
215 "sig" : "()\n{\n\n}",
217 "memberOf" : "Roo.Component",
219 "isConstructor" : false,
239 "desc" : "If this is a lazy rendering component, render it to its container element.",
240 "sig" : "(container)",
242 "memberOf" : "Roo.Component",
244 "isConstructor" : false,
254 "name" : "container",
255 "type" : "String/HTMLElement/Element",
256 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
265 "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}.",
266 "sig" : "()\n{\n\n}",
268 "memberOf" : "Roo.Component",
270 "isConstructor" : false,
282 "name" : "isVisible",
284 "desc" : "Returns true if this component is visible.",
285 "sig" : "()\n{\n\n}",
287 "memberOf" : "Roo.Component",
289 "isConstructor" : false,
301 "name" : "setDisabled",
303 "desc" : "Convenience function for setting disabled/enabled by boolean.",
304 "sig" : "(disabled)",
306 "memberOf" : "Roo.Component",
308 "isConstructor" : false,
329 "desc" : "Hide this component.",
330 "sig" : "()\n{\n\n}",
332 "memberOf" : "Roo.Component",
334 "isConstructor" : false,
346 "type" : "Roo.Component",
354 "desc" : "Try to focus this component.",
355 "sig" : "(selectText)",
357 "memberOf" : "Roo.Component",
359 "isConstructor" : false,
369 "name" : "selectText",
371 "desc" : "True to also select the text in this component (if applicable)",
378 "type" : "Roo.Component",
386 "desc" : "Show this component.",
387 "sig" : "()\n{\n\n}",
389 "memberOf" : "Roo.Component",
391 "isConstructor" : false,
403 "type" : "Roo.Component",
411 "desc" : "Enable this component.",
412 "sig" : "()\n{\n\n}",
414 "memberOf" : "Roo.Component",
416 "isConstructor" : false,
428 "type" : "Roo.Component",
434 "name" : "setVisible",
436 "desc" : "Convenience function to hide or show this component by boolean.",
439 "memberOf" : "Roo.Component",
441 "isConstructor" : false,
453 "desc" : "True to show, false to hide",
460 "type" : "Roo.Component",
468 "desc" : "Disable this component.",
469 "sig" : "()\n{\n\n}",
471 "memberOf" : "Roo.Component",
473 "isConstructor" : false,
485 "type" : "Roo.Component",
493 "desc" : "Returns the underlying {@link Roo.Element}.",
494 "sig" : "()\n{\n\n}",
496 "memberOf" : "Roo.Component",
498 "isConstructor" : false,
510 "type" : "Roo.Element",
511 "desc" : "The element"
516 "name" : "purgeListeners",
518 "desc" : "Removes all listeners for this object",
519 "sig" : "()\n{\n\n}",
521 "memberOf" : "Roo.util.Observable",
523 "isConstructor" : false,
537 "desc" : "Appends an event handler to this element (shorthand for addListener)",
538 "sig" : "(eventName, handler, scope, options)",
540 "memberOf" : "Roo.util.Observable",
542 "isConstructor" : false,
552 "name" : "eventName",
554 "desc" : "The type of event to listen for",
560 "desc" : "The method the event invokes",
566 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
572 "desc" : "(optional)",
581 "desc" : "Removes a listener (shorthand for removeListener)",
582 "sig" : "(eventName, handler, scope)",
584 "memberOf" : "Roo.util.Observable",
586 "isConstructor" : false,
596 "name" : "eventName",
598 "desc" : "The type of event to listen for",
604 "desc" : "The handler to remove",
610 "desc" : "(optional) The scope (this object) for the handler",
617 "name" : "addEvents",
619 "desc" : "Used to define events on this Observable",
622 "memberOf" : "Roo.util.Observable",
624 "isConstructor" : false,
636 "desc" : "The object with the events defined",
643 "name" : "releaseCapture",
645 "desc" : "Removes <b>all</b> added captures from the Observable.",
648 "memberOf" : "Roo.util.Observable",
650 "isConstructor" : false,
661 "type" : "Observable",
662 "desc" : "The Observable to release",
669 "name" : "removeListener",
671 "desc" : "Removes a listener",
672 "sig" : "(eventName, handler, scope)",
674 "memberOf" : "Roo.util.Observable",
676 "isConstructor" : false,
686 "name" : "eventName",
688 "desc" : "The type of event to listen for",
694 "desc" : "The handler to remove",
700 "desc" : "(optional) The scope (this object) for the handler",
707 "name" : "fireEvent",
709 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
710 "sig" : "(eventName, args)",
712 "memberOf" : "Roo.util.Observable",
714 "isConstructor" : false,
724 "name" : "eventName",
731 "type" : "Object...",
732 "desc" : "Variable number of parameters are passed to handlers",
740 "desc" : "returns false if any of the handlers return false otherwise it returns true"
745 "name" : "hasListener",
747 "desc" : "Checks to see if this object has any listeners for a specified event",
748 "sig" : "(eventName)",
750 "memberOf" : "Roo.util.Observable",
752 "isConstructor" : false,
762 "name" : "eventName",
764 "desc" : "The name of the event to check for",
772 "desc" : "True if the event is being listened for, else false"
779 "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.",
780 "sig" : "(o, fn, scope)",
782 "memberOf" : "Roo.util.Observable",
784 "isConstructor" : false,
795 "type" : "Observable",
796 "desc" : "The Observable to capture",
802 "desc" : "The function to call",
808 "desc" : "(optional) The scope (this object) for the fn",
815 "name" : "addListener",
817 "desc" : "Appends an event handler to this component",
818 "sig" : "(eventName, handler, scope, options)",
820 "memberOf" : "Roo.util.Observable",
822 "isConstructor" : false,
832 "name" : "eventName",
834 "desc" : "The type of event to listen for",
840 "desc" : "The method the event invokes",
846 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
852 "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>",
863 "desc" : "Fires when this item is clicked",
864 "sig" : "function (_self, e)\n{\n\n}",
865 "memberOf" : "Roo.menu.BaseItem",
873 "type" : "Roo.menu.BaseItem",
879 "type" : "Roo.EventObject",
889 "desc" : "Fires when this item is activated",
890 "sig" : "function (_self)\n{\n\n}",
891 "memberOf" : "Roo.menu.BaseItem",
899 "type" : "Roo.menu.BaseItem",
907 "name" : "deactivate",
909 "desc" : "Fires when this item is deactivated",
910 "sig" : "function (_self)\n{\n\n}",
911 "memberOf" : "Roo.menu.BaseItem",
919 "type" : "Roo.menu.BaseItem",
927 "name" : "beforerender",
929 "desc" : "Fires before the component is rendered. Return false to stop the render.",
930 "sig" : "function (_self)\n{\n\n}",
931 "memberOf" : "Roo.Component",
939 "type" : "Roo.Component",
949 "desc" : "Fires after the component is disabled.",
950 "sig" : "function (_self)\n{\n\n}",
951 "memberOf" : "Roo.Component",
959 "type" : "Roo.Component",
969 "desc" : "Fires after the component is rendered.",
970 "sig" : "function (_self)\n{\n\n}",
971 "memberOf" : "Roo.Component",
979 "type" : "Roo.Component",
989 "desc" : "Fires after the component is destroyed.",
990 "sig" : "function (_self)\n{\n\n}",
991 "memberOf" : "Roo.Component",
999 "type" : "Roo.Component",
1001 "isOptional" : false
1008 "type" : "function",
1009 "desc" : "Fires after the component is hidden.",
1010 "sig" : "function (_self)\n{\n\n}",
1011 "memberOf" : "Roo.Component",
1019 "type" : "Roo.Component",
1021 "isOptional" : false
1027 "name" : "beforehide",
1028 "type" : "function",
1029 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1030 "sig" : "function (_self)\n{\n\n}",
1031 "memberOf" : "Roo.Component",
1039 "type" : "Roo.Component",
1041 "isOptional" : false
1048 "type" : "function",
1049 "desc" : "Fires after the component is shown.",
1050 "sig" : "function (_self)\n{\n\n}",
1051 "memberOf" : "Roo.Component",
1059 "type" : "Roo.Component",
1061 "isOptional" : false
1067 "name" : "beforeshow",
1068 "type" : "function",
1069 "desc" : "Fires before the component is shown. Return false to stop the show.",
1070 "sig" : "function (_self)\n{\n\n}",
1071 "memberOf" : "Roo.Component",
1079 "type" : "Roo.Component",
1081 "isOptional" : false
1088 "type" : "function",
1089 "desc" : "Fires after the component is enabled.",
1090 "sig" : "function (_self)\n{\n\n}",
1091 "memberOf" : "Roo.Component",
1099 "type" : "Roo.Component",
1101 "isOptional" : false
1107 "name" : "beforedestroy",
1108 "type" : "function",
1109 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1110 "sig" : "function (_self)\n{\n\n}",
1111 "memberOf" : "Roo.Component",
1119 "type" : "Roo.Component",
1121 "isOptional" : false