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,
124 "desc" : "css styles to add to component\neg. text-align:right;",
125 "memberOf" : "Roo.Component",
126 "isOptional" : false,
130 "name" : "allowDomMove",
132 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
133 "memberOf" : "Roo.Component",
134 "isOptional" : false,
140 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
142 "isOptional" : false,
148 "desc" : "The default CSS class to use for menu items (defaults to \"x-menu-item\")",
150 "isOptional" : false,
154 "name" : "actionMode",
156 "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",
157 "memberOf" : "Roo.Component",
158 "isOptional" : false,
162 "name" : "canActivate",
164 "desc" : "True if this item can be visually activated (defaults to true)",
166 "isOptional" : false,
172 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
174 "isOptional" : false,
178 "name" : "disableClass",
180 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
181 "memberOf" : "Roo.Component",
182 "isOptional" : false,
190 "desc" : "Sets the text to display in this menu item",
191 "sig" : "(text, isHTML)",
195 "isConstructor" : false,
207 "desc" : "The text to display",
213 "desc" : "true to indicate text is pure html.",
222 "desc" : "Returns the id of this component.",
223 "sig" : "()\n{\n\n}",
225 "memberOf" : "Roo.Component",
227 "isConstructor" : false,
247 "desc" : "If this is a lazy rendering component, render it to its container element.",
248 "sig" : "(container)",
250 "memberOf" : "Roo.Component",
252 "isConstructor" : false,
262 "name" : "container",
263 "type" : "String/HTMLElement/Element",
264 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
273 "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}.",
274 "sig" : "()\n{\n\n}",
276 "memberOf" : "Roo.Component",
278 "isConstructor" : false,
290 "name" : "isVisible",
292 "desc" : "Returns true if this component is visible.",
293 "sig" : "()\n{\n\n}",
295 "memberOf" : "Roo.Component",
297 "isConstructor" : false,
309 "name" : "setDisabled",
311 "desc" : "Convenience function for setting disabled/enabled by boolean.",
312 "sig" : "(disabled)",
314 "memberOf" : "Roo.Component",
316 "isConstructor" : false,
337 "desc" : "Hide this component.",
338 "sig" : "()\n{\n\n}",
340 "memberOf" : "Roo.Component",
342 "isConstructor" : false,
354 "type" : "Roo.Component",
362 "desc" : "Try to focus this component.",
363 "sig" : "(selectText)",
365 "memberOf" : "Roo.Component",
367 "isConstructor" : false,
377 "name" : "selectText",
379 "desc" : "True to also select the text in this component (if applicable)",
386 "type" : "Roo.Component",
394 "desc" : "Show this component.",
395 "sig" : "()\n{\n\n}",
397 "memberOf" : "Roo.Component",
399 "isConstructor" : false,
411 "type" : "Roo.Component",
419 "desc" : "Enable this component.",
420 "sig" : "()\n{\n\n}",
422 "memberOf" : "Roo.Component",
424 "isConstructor" : false,
436 "type" : "Roo.Component",
442 "name" : "setVisible",
444 "desc" : "Convenience function to hide or show this component by boolean.",
447 "memberOf" : "Roo.Component",
449 "isConstructor" : false,
461 "desc" : "True to show, false to hide",
468 "type" : "Roo.Component",
476 "desc" : "Disable this component.",
477 "sig" : "()\n{\n\n}",
479 "memberOf" : "Roo.Component",
481 "isConstructor" : false,
493 "type" : "Roo.Component",
501 "desc" : "Returns the underlying {@link Roo.Element}.",
502 "sig" : "()\n{\n\n}",
504 "memberOf" : "Roo.Component",
506 "isConstructor" : false,
518 "type" : "Roo.Element",
519 "desc" : "The element"
524 "name" : "purgeListeners",
526 "desc" : "Removes all listeners for this object",
527 "sig" : "()\n{\n\n}",
529 "memberOf" : "Roo.util.Observable",
531 "isConstructor" : false,
545 "desc" : "Appends an event handler to this element (shorthand for addListener)",
546 "sig" : "(eventName, handler, scope, options)",
548 "memberOf" : "Roo.util.Observable",
550 "isConstructor" : false,
560 "name" : "eventName",
562 "desc" : "The type of event to listen for",
568 "desc" : "The method the event invokes",
574 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
580 "desc" : "(optional)",
589 "desc" : "Removes a listener (shorthand for removeListener)",
590 "sig" : "(eventName, handler, scope)",
592 "memberOf" : "Roo.util.Observable",
594 "isConstructor" : false,
604 "name" : "eventName",
606 "desc" : "The type of event to listen for",
612 "desc" : "The handler to remove",
618 "desc" : "(optional) The scope (this object) for the handler",
625 "name" : "addEvents",
627 "desc" : "Used to define events on this Observable",
630 "memberOf" : "Roo.util.Observable",
632 "isConstructor" : false,
644 "desc" : "The object with the events defined",
651 "name" : "releaseCapture",
653 "desc" : "Removes <b>all</b> added captures from the Observable.",
656 "memberOf" : "Roo.util.Observable",
658 "isConstructor" : false,
669 "type" : "Observable",
670 "desc" : "The Observable to release",
677 "name" : "removeListener",
679 "desc" : "Removes a listener",
680 "sig" : "(eventName, handler, scope)",
682 "memberOf" : "Roo.util.Observable",
684 "isConstructor" : false,
694 "name" : "eventName",
696 "desc" : "The type of event to listen for",
702 "desc" : "The handler to remove",
708 "desc" : "(optional) The scope (this object) for the handler",
715 "name" : "fireEvent",
717 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
718 "sig" : "(eventName, args)",
720 "memberOf" : "Roo.util.Observable",
722 "isConstructor" : false,
732 "name" : "eventName",
739 "type" : "Object...",
740 "desc" : "Variable number of parameters are passed to handlers",
748 "desc" : "returns false if any of the handlers return false otherwise it returns true"
753 "name" : "hasListener",
755 "desc" : "Checks to see if this object has any listeners for a specified event",
756 "sig" : "(eventName)",
758 "memberOf" : "Roo.util.Observable",
760 "isConstructor" : false,
770 "name" : "eventName",
772 "desc" : "The name of the event to check for",
780 "desc" : "True if the event is being listened for, else false"
787 "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.",
788 "sig" : "(o, fn, scope)",
790 "memberOf" : "Roo.util.Observable",
792 "isConstructor" : false,
803 "type" : "Observable",
804 "desc" : "The Observable to capture",
810 "desc" : "The function to call",
816 "desc" : "(optional) The scope (this object) for the fn",
823 "name" : "addListener",
825 "desc" : "Appends an event handler to this component",
826 "sig" : "(eventName, handler, scope, options)",
828 "memberOf" : "Roo.util.Observable",
830 "isConstructor" : false,
840 "name" : "eventName",
842 "desc" : "The type of event to listen for",
848 "desc" : "The method the event invokes",
854 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
860 "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>",
871 "desc" : "Fires when this item is clicked",
872 "sig" : "function (_self, e)\n{\n\n}",
873 "memberOf" : "Roo.menu.BaseItem",
881 "type" : "Roo.menu.BaseItem",
887 "type" : "Roo.EventObject",
897 "desc" : "Fires when this item is activated",
898 "sig" : "function (_self)\n{\n\n}",
899 "memberOf" : "Roo.menu.BaseItem",
907 "type" : "Roo.menu.BaseItem",
915 "name" : "deactivate",
917 "desc" : "Fires when this item is deactivated",
918 "sig" : "function (_self)\n{\n\n}",
919 "memberOf" : "Roo.menu.BaseItem",
927 "type" : "Roo.menu.BaseItem",
935 "name" : "beforerender",
937 "desc" : "Fires before the component is rendered. Return false to stop the render.",
938 "sig" : "function (_self)\n{\n\n}",
939 "memberOf" : "Roo.Component",
947 "type" : "Roo.Component",
957 "desc" : "Fires after the component is disabled.",
958 "sig" : "function (_self)\n{\n\n}",
959 "memberOf" : "Roo.Component",
967 "type" : "Roo.Component",
977 "desc" : "Fires after the component is rendered.",
978 "sig" : "function (_self)\n{\n\n}",
979 "memberOf" : "Roo.Component",
987 "type" : "Roo.Component",
997 "desc" : "Fires after the component is destroyed.",
998 "sig" : "function (_self)\n{\n\n}",
999 "memberOf" : "Roo.Component",
1007 "type" : "Roo.Component",
1009 "isOptional" : false
1016 "type" : "function",
1017 "desc" : "Fires after the component is hidden.",
1018 "sig" : "function (_self)\n{\n\n}",
1019 "memberOf" : "Roo.Component",
1027 "type" : "Roo.Component",
1029 "isOptional" : false
1035 "name" : "beforehide",
1036 "type" : "function",
1037 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1038 "sig" : "function (_self)\n{\n\n}",
1039 "memberOf" : "Roo.Component",
1047 "type" : "Roo.Component",
1049 "isOptional" : false
1056 "type" : "function",
1057 "desc" : "Fires after the component is shown.",
1058 "sig" : "function (_self)\n{\n\n}",
1059 "memberOf" : "Roo.Component",
1067 "type" : "Roo.Component",
1069 "isOptional" : false
1075 "name" : "beforeshow",
1076 "type" : "function",
1077 "desc" : "Fires before the component is shown. Return false to stop the show.",
1078 "sig" : "function (_self)\n{\n\n}",
1079 "memberOf" : "Roo.Component",
1087 "type" : "Roo.Component",
1089 "isOptional" : false
1096 "type" : "function",
1097 "desc" : "Fires after the component is enabled.",
1098 "sig" : "function (_self)\n{\n\n}",
1099 "memberOf" : "Roo.Component",
1107 "type" : "Roo.Component",
1109 "isOptional" : false
1115 "name" : "beforedestroy",
1116 "type" : "function",
1117 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1118 "sig" : "function (_self)\n{\n\n}",
1119 "memberOf" : "Roo.Component",
1127 "type" : "Roo.Component",
1129 "isOptional" : false