2 "name" : "Roo.Toolbar.SplitButton",
8 "desc" : "A menu button that renders into a toolbar.",
16 "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>",
17 "memberOf" : "Roo.util.Observable",
23 "type" : "String/Object",
24 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
25 "memberOf" : "Roo.Button",
32 "desc" : "The button text",
33 "memberOf" : "Roo.Button",
39 "type" : "String/HTMLElement/Element",
40 "desc" : "The element to append the button to",
41 "memberOf" : "Roo.Button",
48 "desc" : "True to start hidden (defaults to false)",
49 "memberOf" : "Roo.Button",
54 "name" : "toggleGroup",
56 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
57 "memberOf" : "Roo.Button",
62 "name" : "handleMouseEvents",
64 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
65 "memberOf" : "Roo.Button",
72 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
73 "memberOf" : "Roo.Button",
78 "name" : "enableToggle",
80 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
81 "memberOf" : "Roo.Button",
86 "name" : "arrowHandler",
88 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
89 "memberOf" : "Roo.SplitButton",
96 "desc" : "A function called when the button is clicked (can be used instead of click event)",
97 "memberOf" : "Roo.Button",
104 "desc" : "The scope of the handler",
105 "memberOf" : "Roo.Button",
112 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
113 "memberOf" : "Roo.Button",
120 "desc" : "True to start disabled (defaults to false)",
121 "memberOf" : "Roo.Button",
128 "desc" : "True to start pressed (only if enableToggle = true)",
129 "memberOf" : "Roo.Button",
135 "type" : "Roo.Template",
136 "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.",
137 "memberOf" : "Roo.Button",
144 "desc" : "A CSS class to apply to the button's main element.",
145 "memberOf" : "Roo.Button",
152 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
153 "memberOf" : "Roo.Button",
160 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
161 "memberOf" : "Roo.Button",
166 "name" : "menuAlign",
168 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
169 "memberOf" : "Roo.Button",
176 "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\")",
177 "memberOf" : "Roo.Button",
182 "name" : "tooltipType",
184 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
185 "memberOf" : "Roo.Button",
190 "name" : "arrowTooltip",
192 "desc" : "The title attribute of the arrow",
193 "memberOf" : "Roo.SplitButton",
198 "name" : "clickEvent",
200 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
201 "memberOf" : "Roo.Button",
207 "type" : "Boolean/Object",
208 "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).",
209 "memberOf" : "Roo.Button",
216 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
217 "memberOf" : "Roo.Button",
225 "desc" : "Removes and destroys this button",
227 "isConstructor" : false,
229 "memberOf" : "Roo.Toolbar.SplitButton",
241 "desc" : "Hides this button",
243 "isConstructor" : false,
245 "memberOf" : "Roo.Toolbar.SplitButton",
257 "desc" : "Shows this button",
259 "isConstructor" : false,
261 "memberOf" : "Roo.Toolbar.SplitButton",
272 "name" : "setArrowHandler",
273 "desc" : "Sets this button's arrow click handler",
275 "isConstructor" : false,
277 "memberOf" : "Roo.SplitButton",
286 "desc" : "The function to call when the arrow is clicked",
292 "desc" : "(optional) Scope for the function passed above",
301 "desc" : "Focus the button",
303 "isConstructor" : false,
305 "memberOf" : "Roo.SplitButton",
316 "name" : "setHandler",
317 "desc" : "Sets this button's click handler",
319 "isConstructor" : false,
321 "memberOf" : "Roo.SplitButton",
330 "desc" : "The function to call when the button is clicked",
336 "desc" : "(optional) Scope for the function passed above",
345 "desc" : "Disable this button",
347 "isConstructor" : false,
349 "memberOf" : "Roo.Button",
361 "desc" : "Enable this button",
363 "isConstructor" : false,
365 "memberOf" : "Roo.Button",
377 "desc" : "Returns the button's underlying element",
379 "isConstructor" : false,
381 "memberOf" : "Roo.Button",
391 "type" : "Roo.Element",
392 "desc" : "The element"
397 "name" : "setDisabled",
398 "desc" : "Convenience function for boolean enable/disable",
400 "isConstructor" : false,
402 "memberOf" : "Roo.Button",
411 "desc" : "True to enable, false to disable",
419 "name" : "setVisible",
420 "desc" : "Convenience function for boolean show/hide",
422 "isConstructor" : false,
424 "memberOf" : "Roo.Button",
433 "desc" : "True to show, false to hide",
442 "desc" : "Gets the text for this button",
444 "isConstructor" : false,
446 "memberOf" : "Roo.Button",
457 "desc" : "The button text"
463 "desc" : "Sets this button's text",
465 "isConstructor" : false,
467 "memberOf" : "Roo.Button",
476 "desc" : "The button text",
485 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
487 "isConstructor" : false,
489 "memberOf" : "Roo.Button",
498 "desc" : "(optional) Force a particular state",
506 "name" : "purgeListeners",
507 "desc" : "Removes all listeners for this object",
509 "isConstructor" : false,
511 "memberOf" : "Roo.util.Observable",
523 "desc" : "Appends an event handler to this element (shorthand for addListener)",
525 "isConstructor" : false,
527 "memberOf" : "Roo.util.Observable",
534 "name" : "eventName",
536 "desc" : "The type of event to listen for",
542 "desc" : "The method the event invokes",
548 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
554 "desc" : "(optional)",
563 "desc" : "Removes a listener (shorthand for removeListener)",
565 "isConstructor" : false,
567 "memberOf" : "Roo.util.Observable",
574 "name" : "eventName",
576 "desc" : "The type of event to listen for",
582 "desc" : "The handler to remove",
588 "desc" : "(optional) The scope (this object) for the handler",
596 "name" : "addEvents",
597 "desc" : "Used to define events on this Observable",
599 "isConstructor" : false,
601 "memberOf" : "Roo.util.Observable",
610 "desc" : "The object with the events defined",
618 "name" : "releaseCapture",
619 "desc" : "Removes <b>all</b> added captures from the Observable.",
621 "isConstructor" : false,
623 "memberOf" : "Roo.util.Observable",
631 "type" : "Observable",
632 "desc" : "The Observable to release",
640 "name" : "removeListener",
641 "desc" : "Removes a listener",
643 "isConstructor" : false,
645 "memberOf" : "Roo.util.Observable",
652 "name" : "eventName",
654 "desc" : "The type of event to listen for",
660 "desc" : "The handler to remove",
666 "desc" : "(optional) The scope (this object) for the handler",
674 "name" : "fireEvent",
675 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
677 "isConstructor" : false,
679 "memberOf" : "Roo.util.Observable",
686 "name" : "eventName",
693 "type" : "Object...",
694 "desc" : "Variable number of parameters are passed to handlers",
702 "desc" : "returns false if any of the handlers return false otherwise it returns true"
707 "name" : "hasListener",
708 "desc" : "Checks to see if this object has any listeners for a specified event",
710 "isConstructor" : false,
712 "memberOf" : "Roo.util.Observable",
719 "name" : "eventName",
721 "desc" : "The name of the event to check for",
729 "desc" : "True if the event is being listened for, else false"
735 "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.",
737 "isConstructor" : false,
739 "memberOf" : "Roo.util.Observable",
747 "type" : "Observable",
748 "desc" : "The Observable to capture",
754 "desc" : "The function to call",
760 "desc" : "(optional) The scope (this object) for the fn",
768 "name" : "addListener",
769 "desc" : "Appends an event handler to this component",
771 "isConstructor" : false,
773 "memberOf" : "Roo.util.Observable",
780 "name" : "eventName",
782 "desc" : "The type of event to listen for",
788 "desc" : "The method the event invokes",
794 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
800 "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>",
810 "name" : "arrowclick",
811 "desc" : "Fires when this button's arrow is clicked",
812 "memberOf" : "Roo.SplitButton",
820 "type" : "SplitButton",
826 "type" : "EventObject",
827 "desc" : "The click event",
836 "desc" : "Fires when the button is rendered",
837 "memberOf" : "Roo.Button",
855 "desc" : "Fires when this button is clicked",
856 "memberOf" : "Roo.Button",
870 "type" : "EventObject",
871 "desc" : "The click event",
879 "name" : "mouseover",
880 "desc" : "Fires when the mouse hovers over the button",
881 "memberOf" : "Roo.Button",
896 "desc" : "The event object",
905 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
906 "memberOf" : "Roo.Button",
930 "desc" : "Fires when the mouse exits the button",
931 "memberOf" : "Roo.Button",
946 "desc" : "The event object",