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"
44 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
45 "memberOf" : "Roo.menu.Item"
50 "desc" : "The text to show on the menu item.",
51 "memberOf" : "Roo.menu.Item"
55 "type" : "Roo.menu.Menu",
56 "desc" : "A Sub menu",
57 "memberOf" : "Roo.menu.Item"
60 "name" : "activeClass",
62 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
63 "memberOf" : "Roo.menu.BaseItem"
68 "desc" : "True to prevent creation of this menu item (defaults to false)",
69 "memberOf" : "Roo.menu.BaseItem"
74 "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\".",
75 "memberOf" : "Roo.Component"
80 "desc" : "All check items with the same group name will automatically be grouped into a single-select\nradio button group (defaults to '')",
86 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
87 "memberOf" : "Roo.menu.BaseItem"
92 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
93 "memberOf" : "Roo.menu.BaseItem"
96 "name" : "hideOnClick",
98 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
99 "memberOf" : "Roo.menu.BaseItem"
102 "name" : "allowDomMove",
104 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
105 "memberOf" : "Roo.Component"
110 "desc" : "The default CSS class to use for check items (defaults to \"x-menu-item x-menu-check-item\")",
116 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
117 "memberOf" : "Roo.menu.Item"
120 "name" : "actionMode",
122 "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",
123 "memberOf" : "Roo.Component"
126 "name" : "groupClass",
128 "desc" : "The default CSS class to use for radio group check items (defaults to \"x-menu-group-item\")",
132 "name" : "canActivate",
134 "desc" : "True if this item can be visually activated (defaults to true)",
135 "memberOf" : "Roo.menu.Item"
140 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
141 "memberOf" : "Roo.menu.Item"
146 "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.",
150 "name" : "disableClass",
152 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
153 "memberOf" : "Roo.Component"
158 "name" : "setChecked",
160 "desc" : "Set the checked state of this item",
161 "sig" : "(checked, suppressEvent)",
165 "isConstructor" : false,
177 "desc" : "The new checked value",
181 "name" : "suppressEvent",
183 "desc" : "(optional) True to prevent the checkchange event from firing (defaults to false)",
192 "desc" : "Sets the text to display in this menu item",
193 "sig" : "(text, isHTML)",
195 "memberOf" : "Roo.menu.Item",
197 "isConstructor" : false,
209 "desc" : "The text to display",
215 "desc" : "true to indicate text is pure html.",
224 "desc" : "Returns the id of this component.",
225 "sig" : "()\n{\n\n}",
227 "memberOf" : "Roo.Component",
229 "isConstructor" : false,
249 "desc" : "If this is a lazy rendering component, render it to its container element.",
250 "sig" : "(container)",
252 "memberOf" : "Roo.Component",
254 "isConstructor" : false,
264 "name" : "container",
265 "type" : "String/HTMLElement/Element",
266 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
275 "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}.",
276 "sig" : "()\n{\n\n}",
278 "memberOf" : "Roo.Component",
280 "isConstructor" : false,
292 "name" : "isVisible",
294 "desc" : "Returns true if this component is visible.",
295 "sig" : "()\n{\n\n}",
297 "memberOf" : "Roo.Component",
299 "isConstructor" : false,
311 "name" : "setDisabled",
313 "desc" : "Convenience function for setting disabled/enabled by boolean.",
314 "sig" : "(disabled)",
316 "memberOf" : "Roo.Component",
318 "isConstructor" : false,
339 "desc" : "Hide this component.",
340 "sig" : "()\n{\n\n}",
342 "memberOf" : "Roo.Component",
344 "isConstructor" : false,
356 "type" : "Roo.Component",
364 "desc" : "Try to focus this component.",
365 "sig" : "(selectText)",
367 "memberOf" : "Roo.Component",
369 "isConstructor" : false,
379 "name" : "selectText",
381 "desc" : "True to also select the text in this component (if applicable)",
388 "type" : "Roo.Component",
396 "desc" : "Show this component.",
397 "sig" : "()\n{\n\n}",
399 "memberOf" : "Roo.Component",
401 "isConstructor" : false,
413 "type" : "Roo.Component",
421 "desc" : "Enable this component.",
422 "sig" : "()\n{\n\n}",
424 "memberOf" : "Roo.Component",
426 "isConstructor" : false,
438 "type" : "Roo.Component",
444 "name" : "setVisible",
446 "desc" : "Convenience function to hide or show this component by boolean.",
449 "memberOf" : "Roo.Component",
451 "isConstructor" : false,
463 "desc" : "True to show, false to hide",
470 "type" : "Roo.Component",
478 "desc" : "Disable this component.",
479 "sig" : "()\n{\n\n}",
481 "memberOf" : "Roo.Component",
483 "isConstructor" : false,
495 "type" : "Roo.Component",
503 "desc" : "Returns the underlying {@link Roo.Element}.",
504 "sig" : "()\n{\n\n}",
506 "memberOf" : "Roo.Component",
508 "isConstructor" : false,
520 "type" : "Roo.Element",
521 "desc" : "The element"
526 "name" : "purgeListeners",
528 "desc" : "Removes all listeners for this object",
529 "sig" : "()\n{\n\n}",
531 "memberOf" : "Roo.util.Observable",
533 "isConstructor" : false,
547 "desc" : "Appends an event handler to this element (shorthand for addListener)",
548 "sig" : "(eventName, handler, scope, options)",
550 "memberOf" : "Roo.util.Observable",
552 "isConstructor" : false,
562 "name" : "eventName",
564 "desc" : "The type of event to listen for",
570 "desc" : "The method the event invokes",
576 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
582 "desc" : "(optional)",
591 "desc" : "Removes a listener (shorthand for removeListener)",
592 "sig" : "(eventName, handler, scope)",
594 "memberOf" : "Roo.util.Observable",
596 "isConstructor" : false,
606 "name" : "eventName",
608 "desc" : "The type of event to listen for",
614 "desc" : "The handler to remove",
620 "desc" : "(optional) The scope (this object) for the handler",
627 "name" : "addEvents",
629 "desc" : "Used to define events on this Observable",
632 "memberOf" : "Roo.util.Observable",
634 "isConstructor" : false,
646 "desc" : "The object with the events defined",
653 "name" : "releaseCapture",
655 "desc" : "Removes <b>all</b> added captures from the Observable.",
658 "memberOf" : "Roo.util.Observable",
660 "isConstructor" : false,
671 "type" : "Observable",
672 "desc" : "The Observable to release",
679 "name" : "removeListener",
681 "desc" : "Removes a listener",
682 "sig" : "(eventName, handler, scope)",
684 "memberOf" : "Roo.util.Observable",
686 "isConstructor" : false,
696 "name" : "eventName",
698 "desc" : "The type of event to listen for",
704 "desc" : "The handler to remove",
710 "desc" : "(optional) The scope (this object) for the handler",
717 "name" : "fireEvent",
719 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
720 "sig" : "(eventName, args)",
722 "memberOf" : "Roo.util.Observable",
724 "isConstructor" : false,
734 "name" : "eventName",
741 "type" : "Object...",
742 "desc" : "Variable number of parameters are passed to handlers",
750 "desc" : "returns false if any of the handlers return false otherwise it returns true"
755 "name" : "hasListener",
757 "desc" : "Checks to see if this object has any listeners for a specified event",
758 "sig" : "(eventName)",
760 "memberOf" : "Roo.util.Observable",
762 "isConstructor" : false,
772 "name" : "eventName",
774 "desc" : "The name of the event to check for",
782 "desc" : "True if the event is being listened for, else false"
789 "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.",
790 "sig" : "(o, fn, scope)",
792 "memberOf" : "Roo.util.Observable",
794 "isConstructor" : false,
805 "type" : "Observable",
806 "desc" : "The Observable to capture",
812 "desc" : "The function to call",
818 "desc" : "(optional) The scope (this object) for the fn",
825 "name" : "addListener",
827 "desc" : "Appends an event handler to this component",
828 "sig" : "(eventName, handler, scope, options)",
830 "memberOf" : "Roo.util.Observable",
832 "isConstructor" : false,
842 "name" : "eventName",
844 "desc" : "The type of event to listen for",
850 "desc" : "The method the event invokes",
856 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
862 "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 "name" : "beforecheckchange",
873 "desc" : "Fires before the checked value is set, providing an opportunity to cancel if needed",
874 "sig" : "function (_self, checked)\n{\n\n}",
883 "type" : "Roo.menu.CheckItem",
890 "desc" : "The new checked value that will be set",
897 "name" : "checkchange",
899 "desc" : "Fires after the checked value has been set",
900 "sig" : "function (_self, checked)\n{\n\n}",
909 "type" : "Roo.menu.CheckItem",
916 "desc" : "The checked value that was set",
925 "desc" : "Fires when this item is clicked",
926 "sig" : "function (_self, e)\n{\n\n}",
927 "memberOf" : "Roo.menu.BaseItem",
935 "type" : "Roo.menu.BaseItem",
941 "type" : "Roo.EventObject",
951 "desc" : "Fires when this item is activated",
952 "sig" : "function (_self)\n{\n\n}",
953 "memberOf" : "Roo.menu.BaseItem",
961 "type" : "Roo.menu.BaseItem",
969 "name" : "deactivate",
971 "desc" : "Fires when this item is deactivated",
972 "sig" : "function (_self)\n{\n\n}",
973 "memberOf" : "Roo.menu.BaseItem",
981 "type" : "Roo.menu.BaseItem",
989 "name" : "beforerender",
991 "desc" : "Fires before the component is rendered. Return false to stop the render.",
992 "sig" : "function (_self)\n{\n\n}",
993 "memberOf" : "Roo.Component",
1001 "type" : "Roo.Component",
1003 "isOptional" : false
1010 "type" : "function",
1011 "desc" : "Fires after the component is disabled.",
1012 "sig" : "function (_self)\n{\n\n}",
1013 "memberOf" : "Roo.Component",
1021 "type" : "Roo.Component",
1023 "isOptional" : false
1030 "type" : "function",
1031 "desc" : "Fires after the component is rendered.",
1032 "sig" : "function (_self)\n{\n\n}",
1033 "memberOf" : "Roo.Component",
1041 "type" : "Roo.Component",
1043 "isOptional" : false
1050 "type" : "function",
1051 "desc" : "Fires after the component is destroyed.",
1052 "sig" : "function (_self)\n{\n\n}",
1053 "memberOf" : "Roo.Component",
1061 "type" : "Roo.Component",
1063 "isOptional" : false
1070 "type" : "function",
1071 "desc" : "Fires after the component is hidden.",
1072 "sig" : "function (_self)\n{\n\n}",
1073 "memberOf" : "Roo.Component",
1081 "type" : "Roo.Component",
1083 "isOptional" : false
1089 "name" : "beforehide",
1090 "type" : "function",
1091 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1092 "sig" : "function (_self)\n{\n\n}",
1093 "memberOf" : "Roo.Component",
1101 "type" : "Roo.Component",
1103 "isOptional" : false
1110 "type" : "function",
1111 "desc" : "Fires after the component is shown.",
1112 "sig" : "function (_self)\n{\n\n}",
1113 "memberOf" : "Roo.Component",
1121 "type" : "Roo.Component",
1123 "isOptional" : false
1129 "name" : "beforeshow",
1130 "type" : "function",
1131 "desc" : "Fires before the component is shown. Return false to stop the show.",
1132 "sig" : "function (_self)\n{\n\n}",
1133 "memberOf" : "Roo.Component",
1141 "type" : "Roo.Component",
1143 "isOptional" : false
1150 "type" : "function",
1151 "desc" : "Fires after the component is enabled.",
1152 "sig" : "function (_self)\n{\n\n}",
1153 "memberOf" : "Roo.Component",
1161 "type" : "Roo.Component",
1163 "isOptional" : false
1169 "name" : "beforedestroy",
1170 "type" : "function",
1171 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1172 "sig" : "function (_self)\n{\n\n}",
1173 "memberOf" : "Roo.Component",
1181 "type" : "Roo.Component",
1183 "isOptional" : false