2 "name" : "Roo.menu.CheckItem",
12 "desc" : "Adds a menu item that contains a checkbox by default, but can also be part of a radio group.",
13 "isSingleton" : false,
17 "isBuilderTop" : false,
18 "memberOf" : "CheckItem",
27 "desc" : "Configuration options",
38 "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>",
39 "memberOf" : "Roo.util.Observable",
46 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
47 "memberOf" : "Roo.menu.Item",
54 "desc" : "The text to show on the menu item.",
55 "memberOf" : "Roo.menu.Item",
61 "type" : "Roo.menu.Menu",
62 "desc" : "A Sub menu",
63 "memberOf" : "Roo.menu.Item",
68 "name" : "activeClass",
70 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
71 "memberOf" : "Roo.menu.BaseItem",
78 "desc" : "True to prevent creation of this menu item (defaults to false)",
79 "memberOf" : "Roo.menu.BaseItem",
86 "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",
87 "memberOf" : "Roo.Component",
97 "desc" : "All check items with the same group name will automatically be grouped into a single-select\nradio button group (defaults to '')",
105 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
106 "memberOf" : "Roo.menu.BaseItem",
107 "isOptional" : false,
111 "name" : "hideDelay",
113 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
114 "memberOf" : "Roo.menu.BaseItem",
115 "isOptional" : false,
119 "name" : "hideOnClick",
121 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
122 "memberOf" : "Roo.menu.BaseItem",
123 "isOptional" : false,
129 "desc" : "css styles to add to component\neg. text-align:right;",
130 "memberOf" : "Roo.Component",
131 "isOptional" : false,
135 "name" : "allowDomMove",
137 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
138 "memberOf" : "Roo.Component",
139 "isOptional" : false,
145 "desc" : "The default CSS class to use for check items (defaults to \"x-menu-item x-menu-check-item\")",
147 "isOptional" : false,
153 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
154 "memberOf" : "Roo.menu.Item",
155 "isOptional" : false,
159 "name" : "actionMode",
161 "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",
162 "memberOf" : "Roo.Component",
163 "isOptional" : false,
167 "name" : "groupClass",
169 "desc" : "The default CSS class to use for radio group check items (defaults to \"x-menu-group-item\")",
171 "isOptional" : false,
175 "name" : "canActivate",
177 "desc" : "True if this item can be visually activated (defaults to true)",
178 "memberOf" : "Roo.menu.Item",
179 "isOptional" : false,
185 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
186 "memberOf" : "Roo.menu.Item",
187 "isOptional" : false,
193 "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.",
195 "isOptional" : false,
199 "name" : "disableClass",
201 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
202 "memberOf" : "Roo.Component",
203 "isOptional" : false,
209 "name" : "setChecked",
211 "desc" : "Set the checked state of this item",
212 "sig" : "(checked, suppressEvent)",
216 "isConstructor" : false,
228 "desc" : "The new checked value",
232 "name" : "suppressEvent",
234 "desc" : "(optional) True to prevent the checkchange event from firing (defaults to false)",
243 "desc" : "Sets the text to display in this menu item",
244 "sig" : "(text, isHTML)",
246 "memberOf" : "Roo.menu.Item",
248 "isConstructor" : false,
260 "desc" : "The text to display",
266 "desc" : "true to indicate text is pure html.",
275 "desc" : "Returns the id of this component.",
276 "sig" : "()\n{\n\n}",
278 "memberOf" : "Roo.Component",
280 "isConstructor" : false,
300 "desc" : "If this is a lazy rendering component, render it to its container element.",
301 "sig" : "(container)",
303 "memberOf" : "Roo.Component",
305 "isConstructor" : false,
315 "name" : "container",
316 "type" : "String/HTMLElement/Element",
317 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
326 "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}.",
327 "sig" : "()\n{\n\n}",
329 "memberOf" : "Roo.Component",
331 "isConstructor" : false,
343 "name" : "isVisible",
345 "desc" : "Returns true if this component is visible.",
346 "sig" : "()\n{\n\n}",
348 "memberOf" : "Roo.Component",
350 "isConstructor" : false,
362 "name" : "setDisabled",
364 "desc" : "Convenience function for setting disabled/enabled by boolean.",
365 "sig" : "(disabled)",
367 "memberOf" : "Roo.Component",
369 "isConstructor" : false,
390 "desc" : "Hide this component.",
391 "sig" : "()\n{\n\n}",
393 "memberOf" : "Roo.Component",
395 "isConstructor" : false,
407 "type" : "Roo.Component",
415 "desc" : "Try to focus this component.",
416 "sig" : "(selectText)",
418 "memberOf" : "Roo.Component",
420 "isConstructor" : false,
430 "name" : "selectText",
432 "desc" : "True to also select the text in this component (if applicable)",
439 "type" : "Roo.Component",
447 "desc" : "Show this component.",
448 "sig" : "()\n{\n\n}",
450 "memberOf" : "Roo.Component",
452 "isConstructor" : false,
464 "type" : "Roo.Component",
472 "desc" : "Enable this component.",
473 "sig" : "()\n{\n\n}",
475 "memberOf" : "Roo.Component",
477 "isConstructor" : false,
489 "type" : "Roo.Component",
495 "name" : "setVisible",
497 "desc" : "Convenience function to hide or show this component by boolean.",
500 "memberOf" : "Roo.Component",
502 "isConstructor" : false,
514 "desc" : "True to show, false to hide",
521 "type" : "Roo.Component",
529 "desc" : "Disable this component.",
530 "sig" : "()\n{\n\n}",
532 "memberOf" : "Roo.Component",
534 "isConstructor" : false,
546 "type" : "Roo.Component",
554 "desc" : "Returns the underlying {@link Roo.Element}.",
555 "sig" : "()\n{\n\n}",
557 "memberOf" : "Roo.Component",
559 "isConstructor" : false,
571 "type" : "Roo.Element",
572 "desc" : "The element"
577 "name" : "purgeListeners",
579 "desc" : "Removes all listeners for this object",
580 "sig" : "()\n{\n\n}",
582 "memberOf" : "Roo.util.Observable",
584 "isConstructor" : false,
598 "desc" : "Appends an event handler to this element (shorthand for addListener)",
599 "sig" : "(eventName, handler, scope, options)",
601 "memberOf" : "Roo.util.Observable",
603 "isConstructor" : false,
613 "name" : "eventName",
615 "desc" : "The type of event to listen for",
621 "desc" : "The method the event invokes",
627 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
633 "desc" : "(optional)",
642 "desc" : "Removes a listener (shorthand for removeListener)",
643 "sig" : "(eventName, handler, scope)",
645 "memberOf" : "Roo.util.Observable",
647 "isConstructor" : false,
657 "name" : "eventName",
659 "desc" : "The type of event to listen for",
665 "desc" : "The handler to remove",
671 "desc" : "(optional) The scope (this object) for the handler",
678 "name" : "addEvents",
680 "desc" : "Used to define events on this Observable",
683 "memberOf" : "Roo.util.Observable",
685 "isConstructor" : false,
697 "desc" : "The object with the events defined",
704 "name" : "releaseCapture",
706 "desc" : "Removes <b>all</b> added captures from the Observable.",
709 "memberOf" : "Roo.util.Observable",
711 "isConstructor" : false,
722 "type" : "Observable",
723 "desc" : "The Observable to release",
730 "name" : "removeListener",
732 "desc" : "Removes a listener",
733 "sig" : "(eventName, handler, scope)",
735 "memberOf" : "Roo.util.Observable",
737 "isConstructor" : false,
747 "name" : "eventName",
749 "desc" : "The type of event to listen for",
755 "desc" : "The handler to remove",
761 "desc" : "(optional) The scope (this object) for the handler",
768 "name" : "fireEvent",
770 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
771 "sig" : "(eventName, args)",
773 "memberOf" : "Roo.util.Observable",
775 "isConstructor" : false,
785 "name" : "eventName",
792 "type" : "Object...",
793 "desc" : "Variable number of parameters are passed to handlers",
801 "desc" : "returns false if any of the handlers return false otherwise it returns true"
806 "name" : "hasListener",
808 "desc" : "Checks to see if this object has any listeners for a specified event",
809 "sig" : "(eventName)",
811 "memberOf" : "Roo.util.Observable",
813 "isConstructor" : false,
823 "name" : "eventName",
825 "desc" : "The name of the event to check for",
833 "desc" : "True if the event is being listened for, else false"
840 "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.",
841 "sig" : "(o, fn, scope)",
843 "memberOf" : "Roo.util.Observable",
845 "isConstructor" : false,
856 "type" : "Observable",
857 "desc" : "The Observable to capture",
863 "desc" : "The function to call",
869 "desc" : "(optional) The scope (this object) for the fn",
876 "name" : "addListener",
878 "desc" : "Appends an event handler to this component",
879 "sig" : "(eventName, handler, scope, options)",
881 "memberOf" : "Roo.util.Observable",
883 "isConstructor" : false,
893 "name" : "eventName",
895 "desc" : "The type of event to listen for",
901 "desc" : "The method the event invokes",
907 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
913 "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>",
922 "name" : "beforecheckchange",
924 "desc" : "Fires before the checked value is set, providing an opportunity to cancel if needed",
925 "sig" : "function (_self, checked)\n{\n\n}",
934 "type" : "Roo.menu.CheckItem",
941 "desc" : "The new checked value that will be set",
948 "name" : "checkchange",
950 "desc" : "Fires after the checked value has been set",
951 "sig" : "function (_self, checked)\n{\n\n}",
960 "type" : "Roo.menu.CheckItem",
967 "desc" : "The checked value that was set",
976 "desc" : "Fires when this item is clicked",
977 "sig" : "function (_self, e)\n{\n\n}",
978 "memberOf" : "Roo.menu.BaseItem",
986 "type" : "Roo.menu.BaseItem",
992 "type" : "Roo.EventObject",
1000 "name" : "activate",
1001 "type" : "function",
1002 "desc" : "Fires when this item is activated",
1003 "sig" : "function (_self)\n{\n\n}",
1004 "memberOf" : "Roo.menu.BaseItem",
1012 "type" : "Roo.menu.BaseItem",
1014 "isOptional" : false
1020 "name" : "deactivate",
1021 "type" : "function",
1022 "desc" : "Fires when this item is deactivated",
1023 "sig" : "function (_self)\n{\n\n}",
1024 "memberOf" : "Roo.menu.BaseItem",
1032 "type" : "Roo.menu.BaseItem",
1034 "isOptional" : false
1040 "name" : "beforerender",
1041 "type" : "function",
1042 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1043 "sig" : "function (_self)\n{\n\n}",
1044 "memberOf" : "Roo.Component",
1052 "type" : "Roo.Component",
1054 "isOptional" : false
1061 "type" : "function",
1062 "desc" : "Fires after the component is disabled.",
1063 "sig" : "function (_self)\n{\n\n}",
1064 "memberOf" : "Roo.Component",
1072 "type" : "Roo.Component",
1074 "isOptional" : false
1081 "type" : "function",
1082 "desc" : "Fires after the component is rendered.",
1083 "sig" : "function (_self)\n{\n\n}",
1084 "memberOf" : "Roo.Component",
1092 "type" : "Roo.Component",
1094 "isOptional" : false
1101 "type" : "function",
1102 "desc" : "Fires after the component is destroyed.",
1103 "sig" : "function (_self)\n{\n\n}",
1104 "memberOf" : "Roo.Component",
1112 "type" : "Roo.Component",
1114 "isOptional" : false
1121 "type" : "function",
1122 "desc" : "Fires after the component is hidden.",
1123 "sig" : "function (_self)\n{\n\n}",
1124 "memberOf" : "Roo.Component",
1132 "type" : "Roo.Component",
1134 "isOptional" : false
1140 "name" : "beforehide",
1141 "type" : "function",
1142 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1143 "sig" : "function (_self)\n{\n\n}",
1144 "memberOf" : "Roo.Component",
1152 "type" : "Roo.Component",
1154 "isOptional" : false
1161 "type" : "function",
1162 "desc" : "Fires after the component is shown.",
1163 "sig" : "function (_self)\n{\n\n}",
1164 "memberOf" : "Roo.Component",
1172 "type" : "Roo.Component",
1174 "isOptional" : false
1180 "name" : "beforeshow",
1181 "type" : "function",
1182 "desc" : "Fires before the component is shown. Return false to stop the show.",
1183 "sig" : "function (_self)\n{\n\n}",
1184 "memberOf" : "Roo.Component",
1192 "type" : "Roo.Component",
1194 "isOptional" : false
1201 "type" : "function",
1202 "desc" : "Fires after the component is enabled.",
1203 "sig" : "function (_self)\n{\n\n}",
1204 "memberOf" : "Roo.Component",
1212 "type" : "Roo.Component",
1214 "isOptional" : false
1220 "name" : "beforedestroy",
1221 "type" : "function",
1222 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1223 "sig" : "function (_self)\n{\n\n}",
1224 "memberOf" : "Roo.Component",
1232 "type" : "Roo.Component",
1234 "isOptional" : false