2 "name" : "Roo.SplitButton",
7 "desc" : "A split button that provides a built-in dropdown arrow that can fire an event separately from the default\nclick event of the button. Typically this would be used to display a dropdown menu that provides additional\noptions to the primary button action, but any custom handler can provide the arrowclick implementation.",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
22 "type" : "String/Object",
23 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
24 "memberOf" : "Roo.Button",
31 "desc" : "The button text",
32 "memberOf" : "Roo.Button",
38 "type" : "String/HTMLElement/Element",
39 "desc" : "The element to append the button to",
40 "memberOf" : "Roo.Button",
47 "desc" : "True to start hidden (defaults to false)",
48 "memberOf" : "Roo.Button",
53 "name" : "toggleGroup",
55 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
56 "memberOf" : "Roo.Button",
61 "name" : "handleMouseEvents",
63 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
64 "memberOf" : "Roo.Button",
71 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
72 "memberOf" : "Roo.Button",
77 "name" : "enableToggle",
79 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
80 "memberOf" : "Roo.Button",
85 "name" : "arrowHandler",
87 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
88 "memberOf" : "Roo.SplitButton",
95 "desc" : "A function called when the button is clicked (can be used instead of click event)",
96 "memberOf" : "Roo.Button",
103 "desc" : "The scope of the handler",
104 "memberOf" : "Roo.Button",
111 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
112 "memberOf" : "Roo.Button",
119 "desc" : "True to start disabled (defaults to false)",
120 "memberOf" : "Roo.Button",
127 "desc" : "True to start pressed (only if enableToggle = true)",
128 "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",
143 "desc" : "A CSS class to apply to the button's main element.",
144 "memberOf" : "Roo.Button",
151 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
152 "memberOf" : "Roo.Button",
159 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
160 "memberOf" : "Roo.Button",
165 "name" : "menuAlign",
167 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
168 "memberOf" : "Roo.Button",
175 "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\")",
176 "memberOf" : "Roo.Button",
181 "name" : "tooltipType",
183 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
184 "memberOf" : "Roo.Button",
189 "name" : "arrowTooltip",
191 "desc" : "The title attribute of the arrow",
192 "memberOf" : "Roo.SplitButton",
197 "name" : "clickEvent",
199 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
200 "memberOf" : "Roo.Button",
206 "type" : "Boolean/Object",
207 "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).",
208 "memberOf" : "Roo.Button",
215 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
216 "memberOf" : "Roo.Button",
223 "name" : "setArrowHandler",
224 "desc" : "Sets this button's arrow click handler",
226 "isConstructor" : false,
228 "memberOf" : "Roo.SplitButton",
237 "desc" : "The function to call when the arrow is clicked",
243 "desc" : "(optional) Scope for the function passed above",
252 "desc" : "Focus the button",
254 "isConstructor" : false,
256 "memberOf" : "Roo.SplitButton",
267 "name" : "setHandler",
268 "desc" : "Sets this button's click handler",
270 "isConstructor" : false,
272 "memberOf" : "Roo.SplitButton",
281 "desc" : "The function to call when the button is clicked",
287 "desc" : "(optional) Scope for the function passed above",
296 "desc" : "Show this button",
298 "isConstructor" : false,
300 "memberOf" : "Roo.Button",
312 "desc" : "Disable this button",
314 "isConstructor" : false,
316 "memberOf" : "Roo.Button",
328 "desc" : "Enable this button",
330 "isConstructor" : false,
332 "memberOf" : "Roo.Button",
344 "desc" : "Returns the button's underlying element",
346 "isConstructor" : false,
348 "memberOf" : "Roo.Button",
358 "type" : "Roo.Element",
359 "desc" : "The element"
364 "name" : "setDisabled",
365 "desc" : "Convenience function for boolean enable/disable",
367 "isConstructor" : false,
369 "memberOf" : "Roo.Button",
378 "desc" : "True to enable, false to disable",
386 "name" : "setVisible",
387 "desc" : "Convenience function for boolean show/hide",
389 "isConstructor" : false,
391 "memberOf" : "Roo.Button",
400 "desc" : "True to show, false to hide",
409 "desc" : "Destroys this Button and removes any listeners.",
411 "isConstructor" : false,
413 "memberOf" : "Roo.Button",
425 "desc" : "Gets the text for this button",
427 "isConstructor" : false,
429 "memberOf" : "Roo.Button",
440 "desc" : "The button text"
446 "desc" : "Sets this button's text",
448 "isConstructor" : false,
450 "memberOf" : "Roo.Button",
459 "desc" : "The button text",
468 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
470 "isConstructor" : false,
472 "memberOf" : "Roo.Button",
481 "desc" : "(optional) Force a particular state",
490 "desc" : "Hide this button",
492 "isConstructor" : false,
494 "memberOf" : "Roo.Button",
505 "name" : "purgeListeners",
506 "desc" : "Removes all listeners for this object",
508 "isConstructor" : false,
510 "memberOf" : "Roo.util.Observable",
522 "desc" : "Appends an event handler to this element (shorthand for addListener)",
524 "isConstructor" : false,
526 "memberOf" : "Roo.util.Observable",
533 "name" : "eventName",
535 "desc" : "The type of event to listen for",
541 "desc" : "The method the event invokes",
547 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
553 "desc" : "(optional)",
562 "desc" : "Removes a listener (shorthand for removeListener)",
564 "isConstructor" : false,
566 "memberOf" : "Roo.util.Observable",
573 "name" : "eventName",
575 "desc" : "The type of event to listen for",
581 "desc" : "The handler to remove",
587 "desc" : "(optional) The scope (this object) for the handler",
595 "name" : "addEvents",
596 "desc" : "Used to define events on this Observable",
598 "isConstructor" : false,
600 "memberOf" : "Roo.util.Observable",
609 "desc" : "The object with the events defined",
617 "name" : "releaseCapture",
618 "desc" : "Removes <b>all</b> added captures from the Observable.",
620 "isConstructor" : false,
622 "memberOf" : "Roo.util.Observable",
630 "type" : "Observable",
631 "desc" : "The Observable to release",
639 "name" : "removeListener",
640 "desc" : "Removes a listener",
642 "isConstructor" : false,
644 "memberOf" : "Roo.util.Observable",
651 "name" : "eventName",
653 "desc" : "The type of event to listen for",
659 "desc" : "The handler to remove",
665 "desc" : "(optional) The scope (this object) for the handler",
673 "name" : "fireEvent",
674 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
676 "isConstructor" : false,
678 "memberOf" : "Roo.util.Observable",
685 "name" : "eventName",
692 "type" : "Object...",
693 "desc" : "Variable number of parameters are passed to handlers",
701 "desc" : "returns false if any of the handlers return false otherwise it returns true"
706 "name" : "hasListener",
707 "desc" : "Checks to see if this object has any listeners for a specified event",
709 "isConstructor" : false,
711 "memberOf" : "Roo.util.Observable",
718 "name" : "eventName",
720 "desc" : "The name of the event to check for",
728 "desc" : "True if the event is being listened for, else false"
734 "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.",
736 "isConstructor" : false,
738 "memberOf" : "Roo.util.Observable",
746 "type" : "Observable",
747 "desc" : "The Observable to capture",
753 "desc" : "The function to call",
759 "desc" : "(optional) The scope (this object) for the fn",
767 "name" : "addListener",
768 "desc" : "Appends an event handler to this component",
770 "isConstructor" : false,
772 "memberOf" : "Roo.util.Observable",
779 "name" : "eventName",
781 "desc" : "The type of event to listen for",
787 "desc" : "The method the event invokes",
793 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
799 "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>",
809 "name" : "arrowclick",
810 "desc" : "Fires when this button's arrow is clicked",
819 "type" : "SplitButton",
825 "type" : "EventObject",
826 "desc" : "The click event",
835 "desc" : "Fires when the button is rendered",
836 "memberOf" : "Roo.Button",
854 "desc" : "Fires when this button is clicked",
855 "memberOf" : "Roo.Button",
869 "type" : "EventObject",
870 "desc" : "The click event",
878 "name" : "mouseover",
879 "desc" : "Fires when the mouse hovers over the button",
880 "memberOf" : "Roo.Button",
895 "desc" : "The event object",
904 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
905 "memberOf" : "Roo.Button",
929 "desc" : "Fires when the mouse exits the button",
930 "memberOf" : "Roo.Button",
945 "desc" : "The event object",