2 "name" : "Roo.menu.CheckItem",
9 "desc" : "Adds a menu item that contains a checkbox by default, but can also be part of a radio group.",
10 "isSingleton" : false,
13 "memberOf" : "CheckItem",
22 "desc" : "Configuration options",
32 "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>",
33 "memberOf" : "Roo.util.Observable",
40 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
41 "memberOf" : "Roo.menu.Item",
48 "desc" : "The text to show on the menu item.",
49 "memberOf" : "Roo.menu.Item",
54 "name" : "activeClass",
56 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
57 "memberOf" : "Roo.menu.BaseItem",
64 "desc" : "True to prevent creation of this menu item (defaults to false)",
65 "memberOf" : "Roo.menu.BaseItem",
72 "desc" : "How this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
73 "memberOf" : "Roo.Component",
82 "desc" : "All check items with the same group name will automatically be grouped into a single-select\nradio button group (defaults to '')",
83 "memberOf" : "Roo.menu.CheckItem",
90 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
91 "memberOf" : "Roo.menu.BaseItem",
98 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
99 "memberOf" : "Roo.menu.BaseItem",
104 "name" : "hideOnClick",
106 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
107 "memberOf" : "Roo.menu.BaseItem",
112 "name" : "allowDomMove",
114 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
115 "memberOf" : "Roo.Component",
122 "desc" : "The default CSS class to use for check items (defaults to \"x-menu-item x-menu-check-item\")",
123 "memberOf" : "Roo.menu.CheckItem",
130 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
131 "memberOf" : "Roo.menu.Item",
136 "name" : "actionMode",
138 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
139 "memberOf" : "Roo.Component",
144 "name" : "groupClass",
146 "desc" : "The default CSS class to use for radio group check items (defaults to \"x-menu-group-item\")",
147 "memberOf" : "Roo.menu.CheckItem",
152 "name" : "canActivate",
154 "desc" : "True if this item can be visually activated (defaults to true)",
155 "memberOf" : "Roo.menu.Item",
162 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
163 "memberOf" : "Roo.menu.Item",
170 "desc" : "True to initialize this checkbox as checked (defaults to false). Note that\nif this checkbox is part of a radio group (group = true) only the last item in the group that is\ninitialized with checked = true will be rendered as checked.",
171 "memberOf" : "Roo.menu.CheckItem",
176 "name" : "disableClass",
178 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
179 "memberOf" : "Roo.Component",
186 "name" : "setChecked",
187 "desc" : "Set the checked state of this item",
189 "isConstructor" : false,
191 "memberOf" : "Roo.menu.CheckItem",
200 "desc" : "The new checked value",
204 "name" : "suppressEvent",
206 "desc" : "(optional) True to prevent the checkchange event from firing (defaults to false)",
215 "desc" : "Sets the text to display in this menu item",
217 "isConstructor" : false,
219 "memberOf" : "Roo.menu.Item",
228 "desc" : "The text to display",
234 "desc" : "true to indicate text is pure html.",
243 "desc" : "Returns the id of this component.",
245 "isConstructor" : false,
247 "memberOf" : "Roo.Component",
264 "desc" : "If this is a lazy rendering component, render it to its container element.",
266 "isConstructor" : false,
268 "memberOf" : "Roo.Component",
275 "name" : "container",
276 "type" : "String/HTMLElement/Element",
277 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
286 "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}.",
288 "isConstructor" : false,
290 "memberOf" : "Roo.Component",
301 "name" : "isVisible",
302 "desc" : "Returns true if this component is visible.",
304 "isConstructor" : false,
306 "memberOf" : "Roo.Component",
317 "name" : "setDisabled",
318 "desc" : "Convenience function for setting disabled/enabled by boolean.",
320 "isConstructor" : false,
322 "memberOf" : "Roo.Component",
340 "desc" : "Hide this component.",
342 "isConstructor" : false,
344 "memberOf" : "Roo.Component",
354 "type" : "Roo.Component",
361 "desc" : "Try to focus this component.",
363 "isConstructor" : false,
365 "memberOf" : "Roo.Component",
372 "name" : "selectText",
374 "desc" : "True to also select the text in this component (if applicable)",
381 "type" : "Roo.Component",
388 "desc" : "Show this component.",
390 "isConstructor" : false,
392 "memberOf" : "Roo.Component",
402 "type" : "Roo.Component",
409 "desc" : "Enable this component.",
411 "isConstructor" : false,
413 "memberOf" : "Roo.Component",
423 "type" : "Roo.Component",
429 "name" : "setVisible",
430 "desc" : "Convenience function to hide or show this component by boolean.",
432 "isConstructor" : false,
434 "memberOf" : "Roo.Component",
443 "desc" : "True to show, false to hide",
450 "type" : "Roo.Component",
457 "desc" : "Disable this component.",
459 "isConstructor" : false,
461 "memberOf" : "Roo.Component",
471 "type" : "Roo.Component",
478 "desc" : "Returns the underlying {@link Roo.Element}.",
480 "isConstructor" : false,
482 "memberOf" : "Roo.Component",
492 "type" : "Roo.Element",
493 "desc" : "The element"
498 "name" : "purgeListeners",
499 "desc" : "Removes all listeners for this object",
501 "isConstructor" : false,
503 "memberOf" : "Roo.util.Observable",
515 "desc" : "Appends an event handler to this element (shorthand for addListener)",
517 "isConstructor" : false,
519 "memberOf" : "Roo.util.Observable",
526 "name" : "eventName",
528 "desc" : "The type of event to listen for",
534 "desc" : "The method the event invokes",
540 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
546 "desc" : "(optional)",
555 "desc" : "Removes a listener (shorthand for removeListener)",
557 "isConstructor" : false,
559 "memberOf" : "Roo.util.Observable",
566 "name" : "eventName",
568 "desc" : "The type of event to listen for",
574 "desc" : "The handler to remove",
580 "desc" : "(optional) The scope (this object) for the handler",
588 "name" : "addEvents",
589 "desc" : "Used to define events on this Observable",
591 "isConstructor" : false,
593 "memberOf" : "Roo.util.Observable",
602 "desc" : "The object with the events defined",
610 "name" : "releaseCapture",
611 "desc" : "Removes <b>all</b> added captures from the Observable.",
613 "isConstructor" : false,
615 "memberOf" : "Roo.util.Observable",
623 "type" : "Observable",
624 "desc" : "The Observable to release",
632 "name" : "removeListener",
633 "desc" : "Removes a listener",
635 "isConstructor" : false,
637 "memberOf" : "Roo.util.Observable",
644 "name" : "eventName",
646 "desc" : "The type of event to listen for",
652 "desc" : "The handler to remove",
658 "desc" : "(optional) The scope (this object) for the handler",
666 "name" : "fireEvent",
667 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
669 "isConstructor" : false,
671 "memberOf" : "Roo.util.Observable",
678 "name" : "eventName",
685 "type" : "Object...",
686 "desc" : "Variable number of parameters are passed to handlers",
694 "desc" : "returns false if any of the handlers return false otherwise it returns true"
699 "name" : "hasListener",
700 "desc" : "Checks to see if this object has any listeners for a specified event",
702 "isConstructor" : false,
704 "memberOf" : "Roo.util.Observable",
711 "name" : "eventName",
713 "desc" : "The name of the event to check for",
721 "desc" : "True if the event is being listened for, else false"
727 "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.",
729 "isConstructor" : false,
731 "memberOf" : "Roo.util.Observable",
739 "type" : "Observable",
740 "desc" : "The Observable to capture",
746 "desc" : "The function to call",
752 "desc" : "(optional) The scope (this object) for the fn",
760 "name" : "addListener",
761 "desc" : "Appends an event handler to this component",
763 "isConstructor" : false,
765 "memberOf" : "Roo.util.Observable",
772 "name" : "eventName",
774 "desc" : "The type of event to listen for",
780 "desc" : "The method the event invokes",
786 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
792 "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>",
802 "name" : "beforecheckchange",
803 "desc" : "Fires before the checked value is set, providing an opportunity to cancel if needed",
804 "memberOf" : "Roo.menu.CheckItem",
812 "type" : "Roo.menu.CheckItem",
819 "desc" : "The new checked value that will be set",
827 "name" : "checkchange",
828 "desc" : "Fires after the checked value has been set",
829 "memberOf" : "Roo.menu.CheckItem",
837 "type" : "Roo.menu.CheckItem",
844 "desc" : "The checked value that was set",
853 "desc" : "Fires when this item is clicked",
854 "memberOf" : "Roo.menu.BaseItem",
862 "type" : "Roo.menu.BaseItem",
868 "type" : "Roo.EventObject",
878 "desc" : "Fires when this item is activated",
879 "memberOf" : "Roo.menu.BaseItem",
887 "type" : "Roo.menu.BaseItem",
896 "name" : "deactivate",
897 "desc" : "Fires when this item is deactivated",
898 "memberOf" : "Roo.menu.BaseItem",
906 "type" : "Roo.menu.BaseItem",
915 "name" : "beforerender",
916 "desc" : "Fires before the component is rendered. Return false to stop the render.",
917 "memberOf" : "Roo.Component",
925 "type" : "Roo.Component",
935 "desc" : "Fires after the component is disabled.",
936 "memberOf" : "Roo.Component",
944 "type" : "Roo.Component",
954 "desc" : "Fires after the component is rendered.",
955 "memberOf" : "Roo.Component",
963 "type" : "Roo.Component",
973 "desc" : "Fires after the component is destroyed.",
974 "memberOf" : "Roo.Component",
982 "type" : "Roo.Component",
992 "desc" : "Fires after the component is hidden.",
993 "memberOf" : "Roo.Component",
1001 "type" : "Roo.Component",
1003 "isOptional" : false
1010 "name" : "beforehide",
1011 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1012 "memberOf" : "Roo.Component",
1020 "type" : "Roo.Component",
1022 "isOptional" : false
1030 "desc" : "Fires after the component is shown.",
1031 "memberOf" : "Roo.Component",
1039 "type" : "Roo.Component",
1041 "isOptional" : false
1048 "name" : "beforeshow",
1049 "desc" : "Fires before the component is shown. Return false to stop the show.",
1050 "memberOf" : "Roo.Component",
1058 "type" : "Roo.Component",
1060 "isOptional" : false
1068 "desc" : "Fires after the component is enabled.",
1069 "memberOf" : "Roo.Component",
1077 "type" : "Roo.Component",
1079 "isOptional" : false
1086 "name" : "beforedestroy",
1087 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1088 "memberOf" : "Roo.Component",
1096 "type" : "Roo.Component",
1098 "isOptional" : false