2 "name" : "Roo.menu.Item",
11 "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.",
12 "isSingleton" : false,
24 "desc" : "Configuration options",
35 "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>",
36 "memberOf" : "Roo.util.Observable"
41 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
47 "desc" : "The text to show on the menu item.",
52 "type" : "Roo.menu.Menu",
53 "desc" : "A Sub menu",
57 "name" : "activeClass",
59 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
60 "memberOf" : "Roo.menu.BaseItem"
65 "desc" : "True to prevent creation of this menu item (defaults to false)",
66 "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"
77 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
78 "memberOf" : "Roo.menu.BaseItem"
83 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
84 "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"
93 "name" : "allowDomMove",
95 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
96 "memberOf" : "Roo.Component"
101 "desc" : "The default CSS class to use for menu items (defaults to \"x-menu-item\")",
107 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
111 "name" : "actionMode",
113 "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",
114 "memberOf" : "Roo.Component"
117 "name" : "canActivate",
119 "desc" : "True if this item can be visually activated (defaults to true)",
125 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
129 "name" : "disableClass",
131 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
132 "memberOf" : "Roo.Component"
139 "desc" : "Sets the text to display in this menu item",
140 "sig" : "(text, isHTML)",
144 "isConstructor" : false,
156 "desc" : "The text to display",
162 "desc" : "true to indicate text is pure html.",
171 "desc" : "Returns the id of this component.",
172 "sig" : "()\n{\n\n}",
174 "memberOf" : "Roo.Component",
176 "isConstructor" : false,
196 "desc" : "If this is a lazy rendering component, render it to its container element.",
197 "sig" : "(container)",
199 "memberOf" : "Roo.Component",
201 "isConstructor" : false,
211 "name" : "container",
212 "type" : "String/HTMLElement/Element",
213 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
222 "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}.",
223 "sig" : "()\n{\n\n}",
225 "memberOf" : "Roo.Component",
227 "isConstructor" : false,
239 "name" : "isVisible",
241 "desc" : "Returns true if this component is visible.",
242 "sig" : "()\n{\n\n}",
244 "memberOf" : "Roo.Component",
246 "isConstructor" : false,
258 "name" : "setDisabled",
260 "desc" : "Convenience function for setting disabled/enabled by boolean.",
261 "sig" : "(disabled)",
263 "memberOf" : "Roo.Component",
265 "isConstructor" : false,
286 "desc" : "Hide this component.",
287 "sig" : "()\n{\n\n}",
289 "memberOf" : "Roo.Component",
291 "isConstructor" : false,
303 "type" : "Roo.Component",
311 "desc" : "Try to focus this component.",
312 "sig" : "(selectText)",
314 "memberOf" : "Roo.Component",
316 "isConstructor" : false,
326 "name" : "selectText",
328 "desc" : "True to also select the text in this component (if applicable)",
335 "type" : "Roo.Component",
343 "desc" : "Show this component.",
344 "sig" : "()\n{\n\n}",
346 "memberOf" : "Roo.Component",
348 "isConstructor" : false,
360 "type" : "Roo.Component",
368 "desc" : "Enable this component.",
369 "sig" : "()\n{\n\n}",
371 "memberOf" : "Roo.Component",
373 "isConstructor" : false,
385 "type" : "Roo.Component",
391 "name" : "setVisible",
393 "desc" : "Convenience function to hide or show this component by boolean.",
396 "memberOf" : "Roo.Component",
398 "isConstructor" : false,
410 "desc" : "True to show, false to hide",
417 "type" : "Roo.Component",
425 "desc" : "Disable this component.",
426 "sig" : "()\n{\n\n}",
428 "memberOf" : "Roo.Component",
430 "isConstructor" : false,
442 "type" : "Roo.Component",
450 "desc" : "Returns the underlying {@link Roo.Element}.",
451 "sig" : "()\n{\n\n}",
453 "memberOf" : "Roo.Component",
455 "isConstructor" : false,
467 "type" : "Roo.Element",
468 "desc" : "The element"
473 "name" : "purgeListeners",
475 "desc" : "Removes all listeners for this object",
476 "sig" : "()\n{\n\n}",
478 "memberOf" : "Roo.util.Observable",
480 "isConstructor" : false,
494 "desc" : "Appends an event handler to this element (shorthand for addListener)",
495 "sig" : "(eventName, handler, scope, options)",
497 "memberOf" : "Roo.util.Observable",
499 "isConstructor" : false,
509 "name" : "eventName",
511 "desc" : "The type of event to listen for",
517 "desc" : "The method the event invokes",
523 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
529 "desc" : "(optional)",
538 "desc" : "Removes a listener (shorthand for removeListener)",
539 "sig" : "(eventName, handler, scope)",
541 "memberOf" : "Roo.util.Observable",
543 "isConstructor" : false,
553 "name" : "eventName",
555 "desc" : "The type of event to listen for",
561 "desc" : "The handler to remove",
567 "desc" : "(optional) The scope (this object) for the handler",
574 "name" : "addEvents",
576 "desc" : "Used to define events on this Observable",
579 "memberOf" : "Roo.util.Observable",
581 "isConstructor" : false,
593 "desc" : "The object with the events defined",
600 "name" : "releaseCapture",
602 "desc" : "Removes <b>all</b> added captures from the Observable.",
605 "memberOf" : "Roo.util.Observable",
607 "isConstructor" : false,
618 "type" : "Observable",
619 "desc" : "The Observable to release",
626 "name" : "removeListener",
628 "desc" : "Removes a listener",
629 "sig" : "(eventName, handler, scope)",
631 "memberOf" : "Roo.util.Observable",
633 "isConstructor" : false,
643 "name" : "eventName",
645 "desc" : "The type of event to listen for",
651 "desc" : "The handler to remove",
657 "desc" : "(optional) The scope (this object) for the handler",
664 "name" : "fireEvent",
666 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
667 "sig" : "(eventName, args)",
669 "memberOf" : "Roo.util.Observable",
671 "isConstructor" : false,
681 "name" : "eventName",
688 "type" : "Object...",
689 "desc" : "Variable number of parameters are passed to handlers",
697 "desc" : "returns false if any of the handlers return false otherwise it returns true"
702 "name" : "hasListener",
704 "desc" : "Checks to see if this object has any listeners for a specified event",
705 "sig" : "(eventName)",
707 "memberOf" : "Roo.util.Observable",
709 "isConstructor" : false,
719 "name" : "eventName",
721 "desc" : "The name of the event to check for",
729 "desc" : "True if the event is being listened for, else false"
736 "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.",
737 "sig" : "(o, fn, scope)",
739 "memberOf" : "Roo.util.Observable",
741 "isConstructor" : false,
752 "type" : "Observable",
753 "desc" : "The Observable to capture",
759 "desc" : "The function to call",
765 "desc" : "(optional) The scope (this object) for the fn",
772 "name" : "addListener",
774 "desc" : "Appends an event handler to this component",
775 "sig" : "(eventName, handler, scope, options)",
777 "memberOf" : "Roo.util.Observable",
779 "isConstructor" : false,
789 "name" : "eventName",
791 "desc" : "The type of event to listen for",
797 "desc" : "The method the event invokes",
803 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
809 "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>",
820 "desc" : "Fires when this item is clicked",
821 "sig" : "function (_self, e)\n{\n\n}",
822 "memberOf" : "Roo.menu.BaseItem",
830 "type" : "Roo.menu.BaseItem",
836 "type" : "Roo.EventObject",
846 "desc" : "Fires when this item is activated",
847 "sig" : "function (_self)\n{\n\n}",
848 "memberOf" : "Roo.menu.BaseItem",
856 "type" : "Roo.menu.BaseItem",
864 "name" : "deactivate",
866 "desc" : "Fires when this item is deactivated",
867 "sig" : "function (_self)\n{\n\n}",
868 "memberOf" : "Roo.menu.BaseItem",
876 "type" : "Roo.menu.BaseItem",
884 "name" : "beforerender",
886 "desc" : "Fires before the component is rendered. Return false to stop the render.",
887 "sig" : "function (_self)\n{\n\n}",
888 "memberOf" : "Roo.Component",
896 "type" : "Roo.Component",
906 "desc" : "Fires after the component is disabled.",
907 "sig" : "function (_self)\n{\n\n}",
908 "memberOf" : "Roo.Component",
916 "type" : "Roo.Component",
926 "desc" : "Fires after the component is rendered.",
927 "sig" : "function (_self)\n{\n\n}",
928 "memberOf" : "Roo.Component",
936 "type" : "Roo.Component",
946 "desc" : "Fires after the component is destroyed.",
947 "sig" : "function (_self)\n{\n\n}",
948 "memberOf" : "Roo.Component",
956 "type" : "Roo.Component",
966 "desc" : "Fires after the component is hidden.",
967 "sig" : "function (_self)\n{\n\n}",
968 "memberOf" : "Roo.Component",
976 "type" : "Roo.Component",
984 "name" : "beforehide",
986 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
987 "sig" : "function (_self)\n{\n\n}",
988 "memberOf" : "Roo.Component",
996 "type" : "Roo.Component",
1005 "type" : "function",
1006 "desc" : "Fires after the component is shown.",
1007 "sig" : "function (_self)\n{\n\n}",
1008 "memberOf" : "Roo.Component",
1016 "type" : "Roo.Component",
1018 "isOptional" : false
1024 "name" : "beforeshow",
1025 "type" : "function",
1026 "desc" : "Fires before the component is shown. Return false to stop the show.",
1027 "sig" : "function (_self)\n{\n\n}",
1028 "memberOf" : "Roo.Component",
1036 "type" : "Roo.Component",
1038 "isOptional" : false
1045 "type" : "function",
1046 "desc" : "Fires after the component is enabled.",
1047 "sig" : "function (_self)\n{\n\n}",
1048 "memberOf" : "Roo.Component",
1056 "type" : "Roo.Component",
1058 "isOptional" : false
1064 "name" : "beforedestroy",
1065 "type" : "function",
1066 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1067 "sig" : "function (_self)\n{\n\n}",
1068 "memberOf" : "Roo.Component",
1076 "type" : "Roo.Component",
1078 "isOptional" : false