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",
30 "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>",
31 "memberOf" : "Roo.util.Observable",
36 "type" : "String/Object",
37 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
38 "memberOf" : "Roo.Button",
44 "desc" : "The button text",
45 "memberOf" : "Roo.Button",
50 "type" : "String/HTMLElement/Element",
51 "desc" : "The element to append the button to",
52 "memberOf" : "Roo.Button",
58 "desc" : "True to start hidden (defaults to false)",
59 "memberOf" : "Roo.Button",
63 "name" : "toggleGroup",
65 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
66 "memberOf" : "Roo.Button",
70 "name" : "handleMouseEvents",
72 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
73 "memberOf" : "Roo.Button",
79 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
80 "memberOf" : "Roo.Button",
84 "name" : "enableToggle",
86 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
87 "memberOf" : "Roo.Button",
91 "name" : "arrowHandler",
93 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
94 "memberOf" : "Roo.SplitButton",
100 "desc" : "A function called when the button is clicked (can be used instead of click event)",
101 "memberOf" : "Roo.Button",
107 "desc" : "The scope of the handler",
108 "memberOf" : "Roo.Button",
114 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
115 "memberOf" : "Roo.Button",
121 "desc" : "True to start disabled (defaults to false)",
122 "memberOf" : "Roo.Button",
128 "desc" : "True to start pressed (only if enableToggle = true)",
129 "memberOf" : "Roo.Button",
134 "type" : "Roo.Template",
135 "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.",
136 "memberOf" : "Roo.Button",
142 "desc" : "A CSS class to apply to the button's main element.",
143 "memberOf" : "Roo.Button",
149 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
150 "memberOf" : "Roo.Button",
156 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
157 "memberOf" : "Roo.Button",
161 "name" : "menuAlign",
163 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
164 "memberOf" : "Roo.Button",
170 "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\")",
171 "memberOf" : "Roo.Button",
175 "name" : "tooltipType",
177 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
178 "memberOf" : "Roo.Button",
182 "name" : "arrowTooltip",
184 "desc" : "The title attribute of the arrow",
185 "memberOf" : "Roo.SplitButton",
189 "name" : "clickEvent",
191 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
192 "memberOf" : "Roo.Button",
197 "type" : "Boolean/Object",
198 "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).",
199 "memberOf" : "Roo.Button",
205 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
206 "memberOf" : "Roo.Button",
213 "desc" : "Removes and destroys this button",
215 "isConstructor" : false,
217 "memberOf" : "Roo.Toolbar.SplitButton",
227 "desc" : "Hides this button",
229 "isConstructor" : false,
231 "memberOf" : "Roo.Toolbar.SplitButton",
241 "desc" : "Shows this button",
243 "isConstructor" : false,
245 "memberOf" : "Roo.Toolbar.SplitButton",
254 "name" : "setArrowHandler",
255 "desc" : "Sets this button's arrow click handler",
257 "isConstructor" : false,
259 "memberOf" : "Roo.SplitButton",
268 "desc" : "The function to call when the arrow is clicked",
274 "desc" : "(optional) Scope for the function passed above",
282 "desc" : "Focus the button",
284 "isConstructor" : false,
286 "memberOf" : "Roo.SplitButton",
295 "name" : "setHandler",
296 "desc" : "Sets this button's click handler",
298 "isConstructor" : false,
300 "memberOf" : "Roo.SplitButton",
309 "desc" : "The function to call when the button is clicked",
315 "desc" : "(optional) Scope for the function passed above",
323 "desc" : "Disable this button",
325 "isConstructor" : false,
327 "memberOf" : "Roo.Button",
337 "desc" : "Enable this button",
339 "isConstructor" : false,
341 "memberOf" : "Roo.Button",
351 "desc" : "Returns the button's underlying element",
353 "isConstructor" : false,
355 "memberOf" : "Roo.Button",
364 "type" : "Roo.Element",
365 "desc" : "The element"
370 "name" : "setDisabled",
371 "desc" : "Convenience function for boolean enable/disable",
373 "isConstructor" : false,
375 "memberOf" : "Roo.Button",
384 "desc" : "True to enable, false to disable",
391 "name" : "setVisible",
392 "desc" : "Convenience function for boolean show/hide",
394 "isConstructor" : false,
396 "memberOf" : "Roo.Button",
405 "desc" : "True to show, false to hide",
413 "desc" : "Gets the text for this button",
415 "isConstructor" : false,
417 "memberOf" : "Roo.Button",
427 "desc" : "The button text"
433 "desc" : "Sets this button's text",
435 "isConstructor" : false,
437 "memberOf" : "Roo.Button",
446 "desc" : "The button text",
454 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
456 "isConstructor" : false,
458 "memberOf" : "Roo.Button",
467 "desc" : "(optional) Force a particular state",
474 "name" : "purgeListeners",
475 "desc" : "Removes all listeners for this object",
477 "isConstructor" : false,
479 "memberOf" : "Roo.util.Observable",
489 "desc" : "Appends an event handler to this element (shorthand for addListener)",
491 "isConstructor" : false,
493 "memberOf" : "Roo.util.Observable",
500 "name" : "eventName",
502 "desc" : "The type of event to listen for",
508 "desc" : "The method the event invokes",
514 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
520 "desc" : "(optional)",
528 "desc" : "Removes a listener (shorthand for removeListener)",
530 "isConstructor" : false,
532 "memberOf" : "Roo.util.Observable",
539 "name" : "eventName",
541 "desc" : "The type of event to listen for",
547 "desc" : "The handler to remove",
553 "desc" : "(optional) The scope (this object) for the handler",
560 "name" : "addEvents",
561 "desc" : "Used to define events on this Observable",
563 "isConstructor" : false,
565 "memberOf" : "Roo.util.Observable",
574 "desc" : "The object with the events defined",
581 "name" : "releaseCapture",
582 "desc" : "Removes <b>all</b> added captures from the Observable.",
584 "isConstructor" : false,
586 "memberOf" : "Roo.util.Observable",
594 "type" : "Observable",
595 "desc" : "The Observable to release",
602 "name" : "removeListener",
603 "desc" : "Removes a listener",
605 "isConstructor" : false,
607 "memberOf" : "Roo.util.Observable",
614 "name" : "eventName",
616 "desc" : "The type of event to listen for",
622 "desc" : "The handler to remove",
628 "desc" : "(optional) The scope (this object) for the handler",
635 "name" : "fireEvent",
636 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
638 "isConstructor" : false,
640 "memberOf" : "Roo.util.Observable",
647 "name" : "eventName",
654 "type" : "Object...",
655 "desc" : "Variable number of parameters are passed to handlers",
663 "desc" : "returns false if any of the handlers return false otherwise it returns true"
668 "name" : "hasListener",
669 "desc" : "Checks to see if this object has any listeners for a specified event",
671 "isConstructor" : false,
673 "memberOf" : "Roo.util.Observable",
680 "name" : "eventName",
682 "desc" : "The name of the event to check for",
690 "desc" : "True if the event is being listened for, else false"
696 "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.",
698 "isConstructor" : false,
700 "memberOf" : "Roo.util.Observable",
708 "type" : "Observable",
709 "desc" : "The Observable to capture",
715 "desc" : "The function to call",
721 "desc" : "(optional) The scope (this object) for the fn",
728 "name" : "addListener",
729 "desc" : "Appends an event handler to this component",
731 "isConstructor" : false,
733 "memberOf" : "Roo.util.Observable",
740 "name" : "eventName",
742 "desc" : "The type of event to listen for",
748 "desc" : "The method the event invokes",
754 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
760 "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>",
769 "name" : "arrowclick",
770 "desc" : "Fires when this button's arrow is clicked",
771 "memberOf" : "Roo.SplitButton",
779 "type" : "SplitButton",
785 "type" : "EventObject",
786 "desc" : "The click event",
794 "desc" : "Fires when the button is rendered",
795 "memberOf" : "Roo.Button",
812 "desc" : "Fires when this button is clicked",
813 "memberOf" : "Roo.Button",
827 "type" : "EventObject",
828 "desc" : "The click event",
835 "name" : "mouseover",
836 "desc" : "Fires when the mouse hovers over the button",
837 "memberOf" : "Roo.Button",
852 "desc" : "The event object",
860 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
861 "memberOf" : "Roo.Button",
884 "desc" : "Fires when the mouse exits the button",
885 "memberOf" : "Roo.Button",
900 "desc" : "The event object",