7 "Roo.Toolbar.SplitButton",
11 "desc" : "Simple Button class",
12 "isSingleton" : false,
15 "memberOf" : "Button",
24 "desc" : "The config object",
35 "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>",
36 "memberOf" : "Roo.util.Observable"
40 "type" : "String/Object",
41 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
47 "desc" : "The button text",
52 "type" : "String/HTMLElement/Element",
53 "desc" : "The element to append the button to",
59 "desc" : "True to start hidden (defaults to false)",
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)",
69 "name" : "handleMouseEvents",
71 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
76 "type" : "Roo.menu.Menu",
77 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
81 "name" : "enableToggle",
83 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
89 "desc" : "A function called when the button is clicked (can be used instead of click event)",
95 "desc" : "The scope of the handler",
101 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
107 "desc" : "True to start disabled (defaults to false)",
113 "desc" : "True to start pressed (only if enableToggle = true)",
118 "type" : "Roo.Template",
119 "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.",
125 "desc" : "A CSS class to apply to the button's main element.",
131 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
137 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
141 "name" : "menuAlign",
143 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
149 "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\")",
153 "name" : "tooltipType",
155 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
159 "name" : "clickEvent",
161 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
166 "type" : "Boolean/Object",
167 "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).",
173 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
181 "desc" : "Show this button",
182 "sig" : "()\n{\n\n}",
186 "isConstructor" : false,
200 "desc" : "Focus the button",
201 "sig" : "()\n{\n\n}",
205 "isConstructor" : false,
217 "name" : "setHandler",
219 "desc" : "Assigns this button's click handler",
220 "sig" : "(handler, scope)",
224 "isConstructor" : false,
236 "desc" : "The function to call when the button is clicked",
242 "desc" : "(optional) Scope for the function passed in",
251 "desc" : "Disable this button",
252 "sig" : "()\n{\n\n}",
256 "isConstructor" : false,
270 "desc" : "Enable this button",
271 "sig" : "()\n{\n\n}",
275 "isConstructor" : false,
289 "desc" : "Returns the button's underlying element",
290 "sig" : "()\n{\n\n}",
294 "isConstructor" : false,
306 "type" : "Roo.Element",
307 "desc" : "The element"
312 "name" : "setDisabled",
314 "desc" : "Convenience function for boolean enable/disable",
319 "isConstructor" : false,
331 "desc" : "True to enable, false to disable",
338 "name" : "setVisible",
340 "desc" : "Convenience function for boolean show/hide",
345 "isConstructor" : false,
357 "desc" : "True to show, false to hide",
366 "desc" : "Destroys this Button and removes any listeners.",
367 "sig" : "()\n{\n\n}",
371 "isConstructor" : false,
385 "desc" : "Gets the text for this button",
386 "sig" : "()\n{\n\n}",
390 "isConstructor" : false,
403 "desc" : "The button text"
410 "desc" : "Sets this button's text",
415 "isConstructor" : false,
427 "desc" : "The button text",
436 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
441 "isConstructor" : false,
453 "desc" : "(optional) Force a particular state",
462 "desc" : "Hide this button",
463 "sig" : "()\n{\n\n}",
467 "isConstructor" : false,
479 "name" : "purgeListeners",
481 "desc" : "Removes all listeners for this object",
482 "sig" : "()\n{\n\n}",
484 "memberOf" : "Roo.util.Observable",
486 "isConstructor" : false,
500 "desc" : "Appends an event handler to this element (shorthand for addListener)",
501 "sig" : "(eventName, handler, scope, options)",
503 "memberOf" : "Roo.util.Observable",
505 "isConstructor" : false,
515 "name" : "eventName",
517 "desc" : "The type of event to listen for",
523 "desc" : "The method the event invokes",
529 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
535 "desc" : "(optional)",
544 "desc" : "Removes a listener (shorthand for removeListener)",
545 "sig" : "(eventName, handler, scope)",
547 "memberOf" : "Roo.util.Observable",
549 "isConstructor" : false,
559 "name" : "eventName",
561 "desc" : "The type of event to listen for",
567 "desc" : "The handler to remove",
573 "desc" : "(optional) The scope (this object) for the handler",
580 "name" : "addEvents",
582 "desc" : "Used to define events on this Observable",
585 "memberOf" : "Roo.util.Observable",
587 "isConstructor" : false,
599 "desc" : "The object with the events defined",
606 "name" : "releaseCapture",
608 "desc" : "Removes <b>all</b> added captures from the Observable.",
611 "memberOf" : "Roo.util.Observable",
613 "isConstructor" : false,
624 "type" : "Observable",
625 "desc" : "The Observable to release",
632 "name" : "removeListener",
634 "desc" : "Removes a listener",
635 "sig" : "(eventName, handler, scope)",
637 "memberOf" : "Roo.util.Observable",
639 "isConstructor" : false,
649 "name" : "eventName",
651 "desc" : "The type of event to listen for",
657 "desc" : "The handler to remove",
663 "desc" : "(optional) The scope (this object) for the handler",
670 "name" : "fireEvent",
672 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
673 "sig" : "(eventName, args)",
675 "memberOf" : "Roo.util.Observable",
677 "isConstructor" : false,
687 "name" : "eventName",
694 "type" : "Object...",
695 "desc" : "Variable number of parameters are passed to handlers",
703 "desc" : "returns false if any of the handlers return false otherwise it returns true"
708 "name" : "hasListener",
710 "desc" : "Checks to see if this object has any listeners for a specified event",
711 "sig" : "(eventName)",
713 "memberOf" : "Roo.util.Observable",
715 "isConstructor" : false,
725 "name" : "eventName",
727 "desc" : "The name of the event to check for",
735 "desc" : "True if the event is being listened for, else false"
742 "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.",
743 "sig" : "(o, fn, scope)",
745 "memberOf" : "Roo.util.Observable",
747 "isConstructor" : false,
758 "type" : "Observable",
759 "desc" : "The Observable to capture",
765 "desc" : "The function to call",
771 "desc" : "(optional) The scope (this object) for the fn",
778 "name" : "addListener",
780 "desc" : "Appends an event handler to this component",
781 "sig" : "(eventName, handler, scope, options)",
783 "memberOf" : "Roo.util.Observable",
785 "isConstructor" : false,
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>",
826 "desc" : "Fires when the button is rendered",
827 "sig" : "function (_self)\n{\n\n}",
846 "desc" : "Fires when this button is clicked",
847 "sig" : "function (_self, e)\n{\n\n}",
862 "type" : "EventObject",
863 "desc" : "The click event",
870 "name" : "mouseover",
872 "desc" : "Fires when the mouse hovers over the button",
873 "sig" : "function (_self, e)\n{\n\n}",
889 "desc" : "The event object",
898 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
899 "sig" : "function (_self, pressed)\n{\n\n}",
924 "desc" : "Fires when the mouse exits the button",
925 "sig" : "function (_self, e)\n{\n\n}",
941 "desc" : "The event object",