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",
33 "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>",
34 "memberOf" : "Roo.util.Observable"
39 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
40 "memberOf" : "Roo.menu.Item"
45 "desc" : "The text to show on the menu item.",
46 "memberOf" : "Roo.menu.Item"
50 "type" : "Roo.menu.Menu",
51 "desc" : "A Sub menu",
52 "memberOf" : "Roo.menu.Item"
55 "name" : "activeClass",
57 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
58 "memberOf" : "Roo.menu.BaseItem"
63 "desc" : "True to prevent creation of this menu item (defaults to false)",
64 "memberOf" : "Roo.menu.BaseItem"
69 "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\".",
70 "memberOf" : "Roo.Component"
75 "desc" : "All check items with the same group name will automatically be grouped into a single-select\nradio button group (defaults to '')",
81 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
82 "memberOf" : "Roo.menu.BaseItem"
87 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
88 "memberOf" : "Roo.menu.BaseItem"
91 "name" : "hideOnClick",
93 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
94 "memberOf" : "Roo.menu.BaseItem"
97 "name" : "allowDomMove",
99 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
100 "memberOf" : "Roo.Component"
105 "desc" : "The default CSS class to use for check items (defaults to \"x-menu-item x-menu-check-item\")",
111 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
112 "memberOf" : "Roo.menu.Item"
115 "name" : "actionMode",
117 "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",
118 "memberOf" : "Roo.Component"
121 "name" : "groupClass",
123 "desc" : "The default CSS class to use for radio group check items (defaults to \"x-menu-group-item\")",
127 "name" : "canActivate",
129 "desc" : "True if this item can be visually activated (defaults to true)",
130 "memberOf" : "Roo.menu.Item"
135 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
136 "memberOf" : "Roo.menu.Item"
141 "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.",
145 "name" : "disableClass",
147 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
148 "memberOf" : "Roo.Component"
153 "name" : "setChecked",
155 "desc" : "Set the checked state of this item",
156 "sig" : "(checked, suppressEvent)",
160 "isConstructor" : false,
172 "desc" : "The new checked value",
176 "name" : "suppressEvent",
178 "desc" : "(optional) True to prevent the checkchange event from firing (defaults to false)",
187 "desc" : "Sets the text to display in this menu item",
188 "sig" : "(text, isHTML)",
190 "memberOf" : "Roo.menu.Item",
192 "isConstructor" : false,
204 "desc" : "The text to display",
210 "desc" : "true to indicate text is pure html.",
219 "desc" : "Returns the id of this component.",
220 "sig" : "()\n{\n\n}",
222 "memberOf" : "Roo.Component",
224 "isConstructor" : false,
244 "desc" : "If this is a lazy rendering component, render it to its container element.",
245 "sig" : "(container)",
247 "memberOf" : "Roo.Component",
249 "isConstructor" : false,
259 "name" : "container",
260 "type" : "String/HTMLElement/Element",
261 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
270 "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}.",
271 "sig" : "()\n{\n\n}",
273 "memberOf" : "Roo.Component",
275 "isConstructor" : false,
287 "name" : "isVisible",
289 "desc" : "Returns true if this component is visible.",
290 "sig" : "()\n{\n\n}",
292 "memberOf" : "Roo.Component",
294 "isConstructor" : false,
306 "name" : "setDisabled",
308 "desc" : "Convenience function for setting disabled/enabled by boolean.",
309 "sig" : "(disabled)",
311 "memberOf" : "Roo.Component",
313 "isConstructor" : false,
334 "desc" : "Hide this component.",
335 "sig" : "()\n{\n\n}",
337 "memberOf" : "Roo.Component",
339 "isConstructor" : false,
351 "type" : "Roo.Component",
359 "desc" : "Try to focus this component.",
360 "sig" : "(selectText)",
362 "memberOf" : "Roo.Component",
364 "isConstructor" : false,
374 "name" : "selectText",
376 "desc" : "True to also select the text in this component (if applicable)",
383 "type" : "Roo.Component",
391 "desc" : "Show this component.",
392 "sig" : "()\n{\n\n}",
394 "memberOf" : "Roo.Component",
396 "isConstructor" : false,
408 "type" : "Roo.Component",
416 "desc" : "Enable this component.",
417 "sig" : "()\n{\n\n}",
419 "memberOf" : "Roo.Component",
421 "isConstructor" : false,
433 "type" : "Roo.Component",
439 "name" : "setVisible",
441 "desc" : "Convenience function to hide or show this component by boolean.",
444 "memberOf" : "Roo.Component",
446 "isConstructor" : false,
458 "desc" : "True to show, false to hide",
465 "type" : "Roo.Component",
473 "desc" : "Disable this component.",
474 "sig" : "()\n{\n\n}",
476 "memberOf" : "Roo.Component",
478 "isConstructor" : false,
490 "type" : "Roo.Component",
498 "desc" : "Returns the underlying {@link Roo.Element}.",
499 "sig" : "()\n{\n\n}",
501 "memberOf" : "Roo.Component",
503 "isConstructor" : false,
515 "type" : "Roo.Element",
516 "desc" : "The element"
521 "name" : "purgeListeners",
523 "desc" : "Removes all listeners for this object",
524 "sig" : "()\n{\n\n}",
526 "memberOf" : "Roo.util.Observable",
528 "isConstructor" : false,
542 "desc" : "Appends an event handler to this element (shorthand for addListener)",
543 "sig" : "(eventName, handler, scope, options)",
545 "memberOf" : "Roo.util.Observable",
547 "isConstructor" : false,
557 "name" : "eventName",
559 "desc" : "The type of event to listen for",
565 "desc" : "The method the event invokes",
571 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
577 "desc" : "(optional)",
586 "desc" : "Removes a listener (shorthand for removeListener)",
587 "sig" : "(eventName, handler, scope)",
589 "memberOf" : "Roo.util.Observable",
591 "isConstructor" : false,
601 "name" : "eventName",
603 "desc" : "The type of event to listen for",
609 "desc" : "The handler to remove",
615 "desc" : "(optional) The scope (this object) for the handler",
622 "name" : "addEvents",
624 "desc" : "Used to define events on this Observable",
627 "memberOf" : "Roo.util.Observable",
629 "isConstructor" : false,
641 "desc" : "The object with the events defined",
648 "name" : "releaseCapture",
650 "desc" : "Removes <b>all</b> added captures from the Observable.",
653 "memberOf" : "Roo.util.Observable",
655 "isConstructor" : false,
666 "type" : "Observable",
667 "desc" : "The Observable to release",
674 "name" : "removeListener",
676 "desc" : "Removes a listener",
677 "sig" : "(eventName, handler, scope)",
679 "memberOf" : "Roo.util.Observable",
681 "isConstructor" : false,
691 "name" : "eventName",
693 "desc" : "The type of event to listen for",
699 "desc" : "The handler to remove",
705 "desc" : "(optional) The scope (this object) for the handler",
712 "name" : "fireEvent",
714 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
715 "sig" : "(eventName, args)",
717 "memberOf" : "Roo.util.Observable",
719 "isConstructor" : false,
729 "name" : "eventName",
736 "type" : "Object...",
737 "desc" : "Variable number of parameters are passed to handlers",
745 "desc" : "returns false if any of the handlers return false otherwise it returns true"
750 "name" : "hasListener",
752 "desc" : "Checks to see if this object has any listeners for a specified event",
753 "sig" : "(eventName)",
755 "memberOf" : "Roo.util.Observable",
757 "isConstructor" : false,
767 "name" : "eventName",
769 "desc" : "The name of the event to check for",
777 "desc" : "True if the event is being listened for, else false"
784 "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.",
785 "sig" : "(o, fn, scope)",
787 "memberOf" : "Roo.util.Observable",
789 "isConstructor" : false,
800 "type" : "Observable",
801 "desc" : "The Observable to capture",
807 "desc" : "The function to call",
813 "desc" : "(optional) The scope (this object) for the fn",
820 "name" : "addListener",
822 "desc" : "Appends an event handler to this component",
823 "sig" : "(eventName, handler, scope, options)",
825 "memberOf" : "Roo.util.Observable",
827 "isConstructor" : false,
837 "name" : "eventName",
839 "desc" : "The type of event to listen for",
845 "desc" : "The method the event invokes",
851 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
857 "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>",
866 "name" : "beforecheckchange",
868 "desc" : "Fires before the checked value is set, providing an opportunity to cancel if needed",
869 "sig" : "function (_self, checked)\n{\n\n}",
878 "type" : "Roo.menu.CheckItem",
885 "desc" : "The new checked value that will be set",
892 "name" : "checkchange",
894 "desc" : "Fires after the checked value has been set",
895 "sig" : "function (_self, checked)\n{\n\n}",
904 "type" : "Roo.menu.CheckItem",
911 "desc" : "The checked value that was set",
920 "desc" : "Fires when this item is clicked",
921 "sig" : "function (_self, e)\n{\n\n}",
922 "memberOf" : "Roo.menu.BaseItem",
930 "type" : "Roo.menu.BaseItem",
936 "type" : "Roo.EventObject",
946 "desc" : "Fires when this item is activated",
947 "sig" : "function (_self)\n{\n\n}",
948 "memberOf" : "Roo.menu.BaseItem",
956 "type" : "Roo.menu.BaseItem",
964 "name" : "deactivate",
966 "desc" : "Fires when this item is deactivated",
967 "sig" : "function (_self)\n{\n\n}",
968 "memberOf" : "Roo.menu.BaseItem",
976 "type" : "Roo.menu.BaseItem",
984 "name" : "beforerender",
986 "desc" : "Fires before the component is rendered. Return false to stop the render.",
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 disabled.",
1007 "sig" : "function (_self)\n{\n\n}",
1008 "memberOf" : "Roo.Component",
1016 "type" : "Roo.Component",
1018 "isOptional" : false
1025 "type" : "function",
1026 "desc" : "Fires after the component is rendered.",
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 destroyed.",
1047 "sig" : "function (_self)\n{\n\n}",
1048 "memberOf" : "Roo.Component",
1056 "type" : "Roo.Component",
1058 "isOptional" : false
1065 "type" : "function",
1066 "desc" : "Fires after the component is hidden.",
1067 "sig" : "function (_self)\n{\n\n}",
1068 "memberOf" : "Roo.Component",
1076 "type" : "Roo.Component",
1078 "isOptional" : false
1084 "name" : "beforehide",
1085 "type" : "function",
1086 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1087 "sig" : "function (_self)\n{\n\n}",
1088 "memberOf" : "Roo.Component",
1096 "type" : "Roo.Component",
1098 "isOptional" : false
1105 "type" : "function",
1106 "desc" : "Fires after the component is shown.",
1107 "sig" : "function (_self)\n{\n\n}",
1108 "memberOf" : "Roo.Component",
1116 "type" : "Roo.Component",
1118 "isOptional" : false
1124 "name" : "beforeshow",
1125 "type" : "function",
1126 "desc" : "Fires before the component is shown. Return false to stop the show.",
1127 "sig" : "function (_self)\n{\n\n}",
1128 "memberOf" : "Roo.Component",
1136 "type" : "Roo.Component",
1138 "isOptional" : false
1145 "type" : "function",
1146 "desc" : "Fires after the component is enabled.",
1147 "sig" : "function (_self)\n{\n\n}",
1148 "memberOf" : "Roo.Component",
1156 "type" : "Roo.Component",
1158 "isOptional" : false
1164 "name" : "beforedestroy",
1165 "type" : "function",
1166 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1167 "sig" : "function (_self)\n{\n\n}",
1168 "memberOf" : "Roo.Component",
1176 "type" : "Roo.Component",
1178 "isOptional" : false