2 "name" : "Roo.menu.CheckItem",
10 "desc" : "Adds a menu item that contains a checkbox by default, but can also be part of a radio group.",
11 "isSingleton" : false,
14 "memberOf" : "CheckItem",
23 "desc" : "Configuration options",
34 "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>",
35 "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"
46 "desc" : "The text to show on the menu item.",
47 "memberOf" : "Roo.menu.Item"
51 "type" : "Roo.menu.Menu",
52 "desc" : "A Sub menu",
53 "memberOf" : "Roo.menu.Item"
56 "name" : "activeClass",
58 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
59 "memberOf" : "Roo.menu.BaseItem"
64 "desc" : "True to prevent creation of this menu item (defaults to false)",
65 "memberOf" : "Roo.menu.BaseItem"
70 "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\".",
71 "memberOf" : "Roo.Component"
76 "desc" : "All check items with the same group name will automatically be grouped into a single-select\nradio button group (defaults to '')",
82 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
83 "memberOf" : "Roo.menu.BaseItem"
88 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
89 "memberOf" : "Roo.menu.BaseItem"
92 "name" : "hideOnClick",
94 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
95 "memberOf" : "Roo.menu.BaseItem"
98 "name" : "allowDomMove",
100 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
101 "memberOf" : "Roo.Component"
106 "desc" : "The default CSS class to use for check items (defaults to \"x-menu-item x-menu-check-item\")",
112 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
113 "memberOf" : "Roo.menu.Item"
116 "name" : "actionMode",
118 "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",
119 "memberOf" : "Roo.Component"
122 "name" : "groupClass",
124 "desc" : "The default CSS class to use for radio group check items (defaults to \"x-menu-group-item\")",
128 "name" : "canActivate",
130 "desc" : "True if this item can be visually activated (defaults to true)",
131 "memberOf" : "Roo.menu.Item"
136 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
137 "memberOf" : "Roo.menu.Item"
142 "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.",
146 "name" : "disableClass",
148 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
149 "memberOf" : "Roo.Component"
154 "name" : "setChecked",
156 "desc" : "Set the checked state of this item",
157 "sig" : "(checked, suppressEvent)",
161 "isConstructor" : false,
173 "desc" : "The new checked value",
177 "name" : "suppressEvent",
179 "desc" : "(optional) True to prevent the checkchange event from firing (defaults to false)",
188 "desc" : "Sets the text to display in this menu item",
189 "sig" : "(text, isHTML)",
191 "memberOf" : "Roo.menu.Item",
193 "isConstructor" : false,
205 "desc" : "The text to display",
211 "desc" : "true to indicate text is pure html.",
220 "desc" : "Returns the id of this component.",
221 "sig" : "()\n{\n\n}",
223 "memberOf" : "Roo.Component",
225 "isConstructor" : false,
245 "desc" : "If this is a lazy rendering component, render it to its container element.",
246 "sig" : "(container)",
248 "memberOf" : "Roo.Component",
250 "isConstructor" : false,
260 "name" : "container",
261 "type" : "String/HTMLElement/Element",
262 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
271 "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}.",
272 "sig" : "()\n{\n\n}",
274 "memberOf" : "Roo.Component",
276 "isConstructor" : false,
288 "name" : "isVisible",
290 "desc" : "Returns true if this component is visible.",
291 "sig" : "()\n{\n\n}",
293 "memberOf" : "Roo.Component",
295 "isConstructor" : false,
307 "name" : "setDisabled",
309 "desc" : "Convenience function for setting disabled/enabled by boolean.",
310 "sig" : "(disabled)",
312 "memberOf" : "Roo.Component",
314 "isConstructor" : false,
335 "desc" : "Hide this component.",
336 "sig" : "()\n{\n\n}",
338 "memberOf" : "Roo.Component",
340 "isConstructor" : false,
352 "type" : "Roo.Component",
360 "desc" : "Try to focus this component.",
361 "sig" : "(selectText)",
363 "memberOf" : "Roo.Component",
365 "isConstructor" : false,
375 "name" : "selectText",
377 "desc" : "True to also select the text in this component (if applicable)",
384 "type" : "Roo.Component",
392 "desc" : "Show this component.",
393 "sig" : "()\n{\n\n}",
395 "memberOf" : "Roo.Component",
397 "isConstructor" : false,
409 "type" : "Roo.Component",
417 "desc" : "Enable this component.",
418 "sig" : "()\n{\n\n}",
420 "memberOf" : "Roo.Component",
422 "isConstructor" : false,
434 "type" : "Roo.Component",
440 "name" : "setVisible",
442 "desc" : "Convenience function to hide or show this component by boolean.",
445 "memberOf" : "Roo.Component",
447 "isConstructor" : false,
459 "desc" : "True to show, false to hide",
466 "type" : "Roo.Component",
474 "desc" : "Disable this component.",
475 "sig" : "()\n{\n\n}",
477 "memberOf" : "Roo.Component",
479 "isConstructor" : false,
491 "type" : "Roo.Component",
499 "desc" : "Returns the underlying {@link Roo.Element}.",
500 "sig" : "()\n{\n\n}",
502 "memberOf" : "Roo.Component",
504 "isConstructor" : false,
516 "type" : "Roo.Element",
517 "desc" : "The element"
522 "name" : "purgeListeners",
524 "desc" : "Removes all listeners for this object",
525 "sig" : "()\n{\n\n}",
527 "memberOf" : "Roo.util.Observable",
529 "isConstructor" : false,
543 "desc" : "Appends an event handler to this element (shorthand for addListener)",
544 "sig" : "(eventName, handler, scope, options)",
546 "memberOf" : "Roo.util.Observable",
548 "isConstructor" : false,
558 "name" : "eventName",
560 "desc" : "The type of event to listen for",
566 "desc" : "The method the event invokes",
572 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
578 "desc" : "(optional)",
587 "desc" : "Removes a listener (shorthand for removeListener)",
588 "sig" : "(eventName, handler, scope)",
590 "memberOf" : "Roo.util.Observable",
592 "isConstructor" : false,
602 "name" : "eventName",
604 "desc" : "The type of event to listen for",
610 "desc" : "The handler to remove",
616 "desc" : "(optional) The scope (this object) for the handler",
623 "name" : "addEvents",
625 "desc" : "Used to define events on this Observable",
628 "memberOf" : "Roo.util.Observable",
630 "isConstructor" : false,
642 "desc" : "The object with the events defined",
649 "name" : "releaseCapture",
651 "desc" : "Removes <b>all</b> added captures from the Observable.",
654 "memberOf" : "Roo.util.Observable",
656 "isConstructor" : false,
667 "type" : "Observable",
668 "desc" : "The Observable to release",
675 "name" : "removeListener",
677 "desc" : "Removes a listener",
678 "sig" : "(eventName, handler, scope)",
680 "memberOf" : "Roo.util.Observable",
682 "isConstructor" : false,
692 "name" : "eventName",
694 "desc" : "The type of event to listen for",
700 "desc" : "The handler to remove",
706 "desc" : "(optional) The scope (this object) for the handler",
713 "name" : "fireEvent",
715 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
716 "sig" : "(eventName, args)",
718 "memberOf" : "Roo.util.Observable",
720 "isConstructor" : false,
730 "name" : "eventName",
737 "type" : "Object...",
738 "desc" : "Variable number of parameters are passed to handlers",
746 "desc" : "returns false if any of the handlers return false otherwise it returns true"
751 "name" : "hasListener",
753 "desc" : "Checks to see if this object has any listeners for a specified event",
754 "sig" : "(eventName)",
756 "memberOf" : "Roo.util.Observable",
758 "isConstructor" : false,
768 "name" : "eventName",
770 "desc" : "The name of the event to check for",
778 "desc" : "True if the event is being listened for, else false"
785 "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.",
786 "sig" : "(o, fn, scope)",
788 "memberOf" : "Roo.util.Observable",
790 "isConstructor" : false,
801 "type" : "Observable",
802 "desc" : "The Observable to capture",
808 "desc" : "The function to call",
814 "desc" : "(optional) The scope (this object) for the fn",
821 "name" : "addListener",
823 "desc" : "Appends an event handler to this component",
824 "sig" : "(eventName, handler, scope, options)",
826 "memberOf" : "Roo.util.Observable",
828 "isConstructor" : false,
838 "name" : "eventName",
840 "desc" : "The type of event to listen for",
846 "desc" : "The method the event invokes",
852 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
858 "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>",
867 "name" : "beforecheckchange",
869 "desc" : "Fires before the checked value is set, providing an opportunity to cancel if needed",
870 "sig" : "function (_self, checked)\n{\n\n}",
879 "type" : "Roo.menu.CheckItem",
886 "desc" : "The new checked value that will be set",
893 "name" : "checkchange",
895 "desc" : "Fires after the checked value has been set",
896 "sig" : "function (_self, checked)\n{\n\n}",
905 "type" : "Roo.menu.CheckItem",
912 "desc" : "The checked value that was set",
921 "desc" : "Fires when this item is clicked",
922 "sig" : "function (_self, e)\n{\n\n}",
923 "memberOf" : "Roo.menu.BaseItem",
931 "type" : "Roo.menu.BaseItem",
937 "type" : "Roo.EventObject",
947 "desc" : "Fires when this item is activated",
948 "sig" : "function (_self)\n{\n\n}",
949 "memberOf" : "Roo.menu.BaseItem",
957 "type" : "Roo.menu.BaseItem",
965 "name" : "deactivate",
967 "desc" : "Fires when this item is deactivated",
968 "sig" : "function (_self)\n{\n\n}",
969 "memberOf" : "Roo.menu.BaseItem",
977 "type" : "Roo.menu.BaseItem",
985 "name" : "beforerender",
987 "desc" : "Fires before the component is rendered. Return false to stop the render.",
988 "sig" : "function (_self)\n{\n\n}",
989 "memberOf" : "Roo.Component",
997 "type" : "Roo.Component",
1006 "type" : "function",
1007 "desc" : "Fires after the component is disabled.",
1008 "sig" : "function (_self)\n{\n\n}",
1009 "memberOf" : "Roo.Component",
1017 "type" : "Roo.Component",
1019 "isOptional" : false
1026 "type" : "function",
1027 "desc" : "Fires after the component is rendered.",
1028 "sig" : "function (_self)\n{\n\n}",
1029 "memberOf" : "Roo.Component",
1037 "type" : "Roo.Component",
1039 "isOptional" : false
1046 "type" : "function",
1047 "desc" : "Fires after the component is destroyed.",
1048 "sig" : "function (_self)\n{\n\n}",
1049 "memberOf" : "Roo.Component",
1057 "type" : "Roo.Component",
1059 "isOptional" : false
1066 "type" : "function",
1067 "desc" : "Fires after the component is hidden.",
1068 "sig" : "function (_self)\n{\n\n}",
1069 "memberOf" : "Roo.Component",
1077 "type" : "Roo.Component",
1079 "isOptional" : false
1085 "name" : "beforehide",
1086 "type" : "function",
1087 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1088 "sig" : "function (_self)\n{\n\n}",
1089 "memberOf" : "Roo.Component",
1097 "type" : "Roo.Component",
1099 "isOptional" : false
1106 "type" : "function",
1107 "desc" : "Fires after the component is shown.",
1108 "sig" : "function (_self)\n{\n\n}",
1109 "memberOf" : "Roo.Component",
1117 "type" : "Roo.Component",
1119 "isOptional" : false
1125 "name" : "beforeshow",
1126 "type" : "function",
1127 "desc" : "Fires before the component is shown. Return false to stop the show.",
1128 "sig" : "function (_self)\n{\n\n}",
1129 "memberOf" : "Roo.Component",
1137 "type" : "Roo.Component",
1139 "isOptional" : false
1146 "type" : "function",
1147 "desc" : "Fires after the component is enabled.",
1148 "sig" : "function (_self)\n{\n\n}",
1149 "memberOf" : "Roo.Component",
1157 "type" : "Roo.Component",
1159 "isOptional" : false
1165 "name" : "beforedestroy",
1166 "type" : "function",
1167 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1168 "sig" : "function (_self)\n{\n\n}",
1169 "memberOf" : "Roo.Component",
1177 "type" : "Roo.Component",
1179 "isOptional" : false