2 "name" : "Roo.Toolbar.SplitButton",
8 "desc" : "A menu button that renders into a toolbar.",
12 "memberOf" : "SplitButton",
21 "desc" : "A standard {@link Roo.SplitButton} config object",
31 "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>",
32 "memberOf" : "Roo.util.Observable",
38 "type" : "String/Object",
39 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
40 "memberOf" : "Roo.Button",
47 "desc" : "The button text",
48 "memberOf" : "Roo.Button",
54 "type" : "String/HTMLElement/Element",
55 "desc" : "The element to append the button to",
56 "memberOf" : "Roo.Button",
63 "desc" : "True to start hidden (defaults to false)",
64 "memberOf" : "Roo.Button",
69 "name" : "toggleGroup",
71 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
72 "memberOf" : "Roo.Button",
77 "name" : "handleMouseEvents",
79 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
80 "memberOf" : "Roo.Button",
87 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
88 "memberOf" : "Roo.Button",
93 "name" : "enableToggle",
95 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
96 "memberOf" : "Roo.Button",
101 "name" : "arrowHandler",
103 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
104 "memberOf" : "Roo.SplitButton",
111 "desc" : "A function called when the button is clicked (can be used instead of click event)",
112 "memberOf" : "Roo.Button",
119 "desc" : "The scope of the handler",
120 "memberOf" : "Roo.Button",
127 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
128 "memberOf" : "Roo.Button",
135 "desc" : "True to start disabled (defaults to false)",
136 "memberOf" : "Roo.Button",
143 "desc" : "True to start pressed (only if enableToggle = true)",
144 "memberOf" : "Roo.Button",
150 "type" : "Roo.Template",
151 "desc" : "(Optional)\nAn {@link Roo.Template} with which to create the Button's main element. This Template must\ncontain numeric substitution parameter 0 if it is to display the tRoo property. Changing the template could\nrequire code modifications if required elements (e.g. a button) aren't present.",
152 "memberOf" : "Roo.Button",
159 "desc" : "A CSS class to apply to the button's main element.",
160 "memberOf" : "Roo.Button",
167 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
168 "memberOf" : "Roo.Button",
175 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
176 "memberOf" : "Roo.Button",
181 "name" : "menuAlign",
183 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
184 "memberOf" : "Roo.Button",
191 "desc" : "The path to an image to display in the button (the image will be set as the background-image\nCSS property of the button by default, so if you want a mixed icon/text button, set cls:\"x-btn-text-icon\")",
192 "memberOf" : "Roo.Button",
197 "name" : "tooltipType",
199 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
200 "memberOf" : "Roo.Button",
205 "name" : "arrowTooltip",
207 "desc" : "The title attribute of the arrow",
208 "memberOf" : "Roo.SplitButton",
213 "name" : "clickEvent",
215 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
216 "memberOf" : "Roo.Button",
222 "type" : "Boolean/Object",
223 "desc" : "True to repeat fire the click event while the mouse is down. This can also be\n an {@link Roo.util.ClickRepeater} config object (defaults to false).",
224 "memberOf" : "Roo.Button",
231 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
232 "memberOf" : "Roo.Button",
240 "desc" : "Removes and destroys this button",
242 "isConstructor" : false,
244 "memberOf" : "Roo.Toolbar.SplitButton",
256 "desc" : "Hides this button",
258 "isConstructor" : false,
260 "memberOf" : "Roo.Toolbar.SplitButton",
272 "desc" : "Shows this button",
274 "isConstructor" : false,
276 "memberOf" : "Roo.Toolbar.SplitButton",
287 "name" : "setArrowHandler",
288 "desc" : "Sets this button's arrow click handler",
290 "isConstructor" : false,
292 "memberOf" : "Roo.SplitButton",
301 "desc" : "The function to call when the arrow is clicked",
307 "desc" : "(optional) Scope for the function passed above",
316 "desc" : "Focus the button",
318 "isConstructor" : false,
320 "memberOf" : "Roo.SplitButton",
331 "name" : "setHandler",
332 "desc" : "Sets this button's click handler",
334 "isConstructor" : false,
336 "memberOf" : "Roo.SplitButton",
345 "desc" : "The function to call when the button is clicked",
351 "desc" : "(optional) Scope for the function passed above",
360 "desc" : "Disable this button",
362 "isConstructor" : false,
364 "memberOf" : "Roo.Button",
376 "desc" : "Enable this button",
378 "isConstructor" : false,
380 "memberOf" : "Roo.Button",
392 "desc" : "Returns the button's underlying element",
394 "isConstructor" : false,
396 "memberOf" : "Roo.Button",
406 "type" : "Roo.Element",
407 "desc" : "The element"
412 "name" : "setDisabled",
413 "desc" : "Convenience function for boolean enable/disable",
415 "isConstructor" : false,
417 "memberOf" : "Roo.Button",
426 "desc" : "True to enable, false to disable",
434 "name" : "setVisible",
435 "desc" : "Convenience function for boolean show/hide",
437 "isConstructor" : false,
439 "memberOf" : "Roo.Button",
448 "desc" : "True to show, false to hide",
457 "desc" : "Gets the text for this button",
459 "isConstructor" : false,
461 "memberOf" : "Roo.Button",
472 "desc" : "The button text"
478 "desc" : "Sets this button's text",
480 "isConstructor" : false,
482 "memberOf" : "Roo.Button",
491 "desc" : "The button text",
500 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
502 "isConstructor" : false,
504 "memberOf" : "Roo.Button",
513 "desc" : "(optional) Force a particular state",
521 "name" : "purgeListeners",
522 "desc" : "Removes all listeners for this object",
524 "isConstructor" : false,
526 "memberOf" : "Roo.util.Observable",
538 "desc" : "Appends an event handler to this element (shorthand for addListener)",
540 "isConstructor" : false,
542 "memberOf" : "Roo.util.Observable",
549 "name" : "eventName",
551 "desc" : "The type of event to listen for",
557 "desc" : "The method the event invokes",
563 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
569 "desc" : "(optional)",
578 "desc" : "Removes a listener (shorthand for removeListener)",
580 "isConstructor" : false,
582 "memberOf" : "Roo.util.Observable",
589 "name" : "eventName",
591 "desc" : "The type of event to listen for",
597 "desc" : "The handler to remove",
603 "desc" : "(optional) The scope (this object) for the handler",
611 "name" : "addEvents",
612 "desc" : "Used to define events on this Observable",
614 "isConstructor" : false,
616 "memberOf" : "Roo.util.Observable",
625 "desc" : "The object with the events defined",
633 "name" : "releaseCapture",
634 "desc" : "Removes <b>all</b> added captures from the Observable.",
636 "isConstructor" : false,
638 "memberOf" : "Roo.util.Observable",
646 "type" : "Observable",
647 "desc" : "The Observable to release",
655 "name" : "removeListener",
656 "desc" : "Removes a listener",
658 "isConstructor" : false,
660 "memberOf" : "Roo.util.Observable",
667 "name" : "eventName",
669 "desc" : "The type of event to listen for",
675 "desc" : "The handler to remove",
681 "desc" : "(optional) The scope (this object) for the handler",
689 "name" : "fireEvent",
690 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
692 "isConstructor" : false,
694 "memberOf" : "Roo.util.Observable",
701 "name" : "eventName",
708 "type" : "Object...",
709 "desc" : "Variable number of parameters are passed to handlers",
717 "desc" : "returns false if any of the handlers return false otherwise it returns true"
722 "name" : "hasListener",
723 "desc" : "Checks to see if this object has any listeners for a specified event",
725 "isConstructor" : false,
727 "memberOf" : "Roo.util.Observable",
734 "name" : "eventName",
736 "desc" : "The name of the event to check for",
744 "desc" : "True if the event is being listened for, else false"
750 "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.",
752 "isConstructor" : false,
754 "memberOf" : "Roo.util.Observable",
762 "type" : "Observable",
763 "desc" : "The Observable to capture",
769 "desc" : "The function to call",
775 "desc" : "(optional) The scope (this object) for the fn",
783 "name" : "addListener",
784 "desc" : "Appends an event handler to this component",
786 "isConstructor" : false,
788 "memberOf" : "Roo.util.Observable",
795 "name" : "eventName",
797 "desc" : "The type of event to listen for",
803 "desc" : "The method the event invokes",
809 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
815 "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>",
825 "name" : "arrowclick",
826 "desc" : "Fires when this button's arrow is clicked",
827 "memberOf" : "Roo.SplitButton",
835 "type" : "SplitButton",
841 "type" : "EventObject",
842 "desc" : "The click event",
851 "desc" : "Fires when the button is rendered",
852 "memberOf" : "Roo.Button",
870 "desc" : "Fires when this button is clicked",
871 "memberOf" : "Roo.Button",
885 "type" : "EventObject",
886 "desc" : "The click event",
894 "name" : "mouseover",
895 "desc" : "Fires when the mouse hovers over the button",
896 "memberOf" : "Roo.Button",
911 "desc" : "The event object",
920 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
921 "memberOf" : "Roo.Button",
945 "desc" : "Fires when the mouse exits the button",
946 "memberOf" : "Roo.Button",
961 "desc" : "The event object",