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,
17 "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>",
18 "memberOf" : "Roo.util.Observable",
25 "desc" : "Length of time in milliseconds to wait before showing this item (defaults to 200)",
26 "memberOf" : "Roo.menu.Item",
33 "desc" : "The text to show on the menu item.",
34 "memberOf" : "Roo.menu.Item",
39 "name" : "activeClass",
41 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
42 "memberOf" : "Roo.menu.BaseItem",
49 "desc" : "True to prevent creation of this menu item (defaults to false)",
50 "memberOf" : "Roo.menu.BaseItem",
57 "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\".",
58 "memberOf" : "Roo.Component",
67 "desc" : "All check items with the same group name will automatically be grouped into a single-select\nradio button group (defaults to '')",
68 "memberOf" : "Roo.menu.CheckItem",
75 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
76 "memberOf" : "Roo.menu.BaseItem",
83 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
84 "memberOf" : "Roo.menu.BaseItem",
89 "name" : "hideOnClick",
91 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
92 "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",
107 "desc" : "The default CSS class to use for check items (defaults to \"x-menu-item x-menu-check-item\")",
108 "memberOf" : "Roo.menu.CheckItem",
115 "desc" : "to render in menu\nThe text to show on the menu item (HTML version).",
116 "memberOf" : "Roo.menu.Item",
121 "name" : "actionMode",
123 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
124 "memberOf" : "Roo.Component",
129 "name" : "groupClass",
131 "desc" : "The default CSS class to use for radio group check items (defaults to \"x-menu-group-item\")",
132 "memberOf" : "Roo.menu.CheckItem",
137 "name" : "canActivate",
139 "desc" : "True if this item can be visually activated (defaults to true)",
140 "memberOf" : "Roo.menu.Item",
147 "desc" : "The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)",
148 "memberOf" : "Roo.menu.Item",
155 "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.",
156 "memberOf" : "Roo.menu.CheckItem",
161 "name" : "disableClass",
163 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
164 "memberOf" : "Roo.Component",
171 "name" : "setChecked",
172 "desc" : "Set the checked state of this item",
174 "isConstructor" : false,
176 "memberOf" : "Roo.menu.CheckItem",
185 "desc" : "The new checked value",
189 "name" : "suppressEvent",
191 "desc" : "(optional) True to prevent the checkchange event from firing (defaults to false)",
200 "desc" : "Sets the text to display in this menu item",
202 "isConstructor" : false,
204 "memberOf" : "Roo.menu.Item",
213 "desc" : "The text to display",
219 "desc" : "true to indicate text is pure html.",
228 "desc" : "Returns the id of this component.",
230 "isConstructor" : false,
232 "memberOf" : "Roo.Component",
249 "desc" : "If this is a lazy rendering component, render it to its container element.",
251 "isConstructor" : false,
253 "memberOf" : "Roo.Component",
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}.",
273 "isConstructor" : false,
275 "memberOf" : "Roo.Component",
286 "name" : "isVisible",
287 "desc" : "Returns true if this component is visible.",
289 "isConstructor" : false,
291 "memberOf" : "Roo.Component",
302 "name" : "setDisabled",
303 "desc" : "Convenience function for setting disabled/enabled by boolean.",
305 "isConstructor" : false,
307 "memberOf" : "Roo.Component",
325 "desc" : "Hide this component.",
327 "isConstructor" : false,
329 "memberOf" : "Roo.Component",
339 "type" : "Roo.Component",
346 "desc" : "Try to focus this component.",
348 "isConstructor" : false,
350 "memberOf" : "Roo.Component",
357 "name" : "selectText",
359 "desc" : "True to also select the text in this component (if applicable)",
366 "type" : "Roo.Component",
373 "desc" : "Show this component.",
375 "isConstructor" : false,
377 "memberOf" : "Roo.Component",
387 "type" : "Roo.Component",
394 "desc" : "Enable this component.",
396 "isConstructor" : false,
398 "memberOf" : "Roo.Component",
408 "type" : "Roo.Component",
414 "name" : "setVisible",
415 "desc" : "Convenience function to hide or show this component by boolean.",
417 "isConstructor" : false,
419 "memberOf" : "Roo.Component",
428 "desc" : "True to show, false to hide",
435 "type" : "Roo.Component",
442 "desc" : "Disable this component.",
444 "isConstructor" : false,
446 "memberOf" : "Roo.Component",
456 "type" : "Roo.Component",
463 "desc" : "Returns the underlying {@link Roo.Element}.",
465 "isConstructor" : false,
467 "memberOf" : "Roo.Component",
477 "type" : "Roo.Element",
478 "desc" : "The element"
483 "name" : "purgeListeners",
484 "desc" : "Removes all listeners for this object",
486 "isConstructor" : false,
488 "memberOf" : "Roo.util.Observable",
500 "desc" : "Appends an event handler to this element (shorthand for addListener)",
502 "isConstructor" : false,
504 "memberOf" : "Roo.util.Observable",
511 "name" : "eventName",
513 "desc" : "The type of event to listen for",
519 "desc" : "The method the event invokes",
525 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
531 "desc" : "(optional)",
540 "desc" : "Removes a listener (shorthand for removeListener)",
542 "isConstructor" : false,
544 "memberOf" : "Roo.util.Observable",
551 "name" : "eventName",
553 "desc" : "The type of event to listen for",
559 "desc" : "The handler to remove",
565 "desc" : "(optional) The scope (this object) for the handler",
573 "name" : "addEvents",
574 "desc" : "Used to define events on this Observable",
576 "isConstructor" : false,
578 "memberOf" : "Roo.util.Observable",
587 "desc" : "The object with the events defined",
595 "name" : "releaseCapture",
596 "desc" : "Removes <b>all</b> added captures from the Observable.",
598 "isConstructor" : false,
600 "memberOf" : "Roo.util.Observable",
608 "type" : "Observable",
609 "desc" : "The Observable to release",
617 "name" : "removeListener",
618 "desc" : "Removes a listener",
620 "isConstructor" : false,
622 "memberOf" : "Roo.util.Observable",
629 "name" : "eventName",
631 "desc" : "The type of event to listen for",
637 "desc" : "The handler to remove",
643 "desc" : "(optional) The scope (this object) for the handler",
651 "name" : "fireEvent",
652 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
654 "isConstructor" : false,
656 "memberOf" : "Roo.util.Observable",
663 "name" : "eventName",
670 "type" : "Object...",
671 "desc" : "Variable number of parameters are passed to handlers",
679 "desc" : "returns false if any of the handlers return false otherwise it returns true"
684 "name" : "hasListener",
685 "desc" : "Checks to see if this object has any listeners for a specified event",
687 "isConstructor" : false,
689 "memberOf" : "Roo.util.Observable",
696 "name" : "eventName",
698 "desc" : "The name of the event to check for",
706 "desc" : "True if the event is being listened for, else false"
712 "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.",
714 "isConstructor" : false,
716 "memberOf" : "Roo.util.Observable",
724 "type" : "Observable",
725 "desc" : "The Observable to capture",
731 "desc" : "The function to call",
737 "desc" : "(optional) The scope (this object) for the fn",
745 "name" : "addListener",
746 "desc" : "Appends an event handler to this component",
748 "isConstructor" : false,
750 "memberOf" : "Roo.util.Observable",
757 "name" : "eventName",
759 "desc" : "The type of event to listen for",
765 "desc" : "The method the event invokes",
771 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
777 "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>",
787 "name" : "beforecheckchange",
788 "desc" : "Fires before the checked value is set, providing an opportunity to cancel if needed",
797 "type" : "Roo.menu.CheckItem",
804 "desc" : "The new checked value that will be set",
812 "name" : "checkchange",
813 "desc" : "Fires after the checked value has been set",
822 "type" : "Roo.menu.CheckItem",
829 "desc" : "The checked value that was set",
838 "desc" : "Fires when this item is clicked",
839 "memberOf" : "Roo.menu.BaseItem",
847 "type" : "Roo.menu.BaseItem",
853 "type" : "Roo.EventObject",
863 "desc" : "Fires when this item is activated",
864 "memberOf" : "Roo.menu.BaseItem",
872 "type" : "Roo.menu.BaseItem",
881 "name" : "deactivate",
882 "desc" : "Fires when this item is deactivated",
883 "memberOf" : "Roo.menu.BaseItem",
891 "type" : "Roo.menu.BaseItem",
900 "name" : "beforerender",
901 "desc" : "Fires before the component is rendered. Return false to stop the render.",
902 "memberOf" : "Roo.Component",
910 "type" : "Roo.Component",
920 "desc" : "Fires after the component is disabled.",
921 "memberOf" : "Roo.Component",
929 "type" : "Roo.Component",
939 "desc" : "Fires after the component is rendered.",
940 "memberOf" : "Roo.Component",
948 "type" : "Roo.Component",
958 "desc" : "Fires after the component is destroyed.",
959 "memberOf" : "Roo.Component",
967 "type" : "Roo.Component",
977 "desc" : "Fires after the component is hidden.",
978 "memberOf" : "Roo.Component",
986 "type" : "Roo.Component",
995 "name" : "beforehide",
996 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
997 "memberOf" : "Roo.Component",
1005 "type" : "Roo.Component",
1007 "isOptional" : false
1015 "desc" : "Fires after the component is shown.",
1016 "memberOf" : "Roo.Component",
1024 "type" : "Roo.Component",
1026 "isOptional" : false
1033 "name" : "beforeshow",
1034 "desc" : "Fires before the component is shown. Return false to stop the show.",
1035 "memberOf" : "Roo.Component",
1043 "type" : "Roo.Component",
1045 "isOptional" : false
1053 "desc" : "Fires after the component is enabled.",
1054 "memberOf" : "Roo.Component",
1062 "type" : "Roo.Component",
1064 "isOptional" : false
1071 "name" : "beforedestroy",
1072 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1073 "memberOf" : "Roo.Component",
1081 "type" : "Roo.Component",
1083 "isOptional" : false