12 "Roo.Toolbar.SplitButton"
17 "desc" : "Simple Button class",
18 "isSingleton" : false,
22 "isBuilderTop" : false,
23 "memberOf" : "Button",
32 "desc" : "The config object",
43 "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>",
44 "memberOf" : "Roo.util.Observable",
50 "type" : "String/Object",
51 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
59 "desc" : "The button text",
66 "type" : "String/HTMLElement/Element",
67 "desc" : "The element to append the button to",
75 "desc" : "True to start hidden (defaults to false)",
81 "name" : "toggleGroup",
83 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
89 "name" : "handleMouseEvents",
91 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
98 "type" : "Roo.menu.Menu",
99 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
101 "isOptional" : false,
105 "name" : "enableToggle",
107 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
109 "isOptional" : false,
115 "desc" : "A function called when the button is clicked (can be used instead of click event)",
117 "isOptional" : false,
123 "desc" : "The scope of the handler",
125 "isOptional" : false,
131 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
133 "isOptional" : false,
139 "desc" : "True to start disabled (defaults to false)",
141 "isOptional" : false,
147 "desc" : "True to start pressed (only if enableToggle = true)",
149 "isOptional" : false,
154 "type" : "Roo.Template",
155 "desc" : "An {@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.",
157 "isOptional" : false,
163 "desc" : "A CSS class to apply to the button's main element.",
165 "isOptional" : false,
171 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
173 "isOptional" : false,
179 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
181 "isOptional" : false,
185 "name" : "menuAlign",
187 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
189 "isOptional" : false,
195 "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\")",
197 "isOptional" : false,
201 "name" : "tooltipType",
203 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
205 "isOptional" : false,
209 "name" : "clickEvent",
211 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
213 "isOptional" : false,
218 "type" : "Boolean/Object",
219 "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).",
221 "isOptional" : false,
227 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
229 "isOptional" : false,
237 "desc" : "Show this button",
238 "sig" : "()\n{\n\n}",
242 "isConstructor" : false,
256 "desc" : "Focus the button",
257 "sig" : "()\n{\n\n}",
261 "isConstructor" : false,
273 "name" : "setHandler",
275 "desc" : "Assigns this button's click handler",
276 "sig" : "(handler, scope)",
280 "isConstructor" : false,
292 "desc" : "The function to call when the button is clicked",
298 "desc" : "(optional) Scope for the function passed in",
307 "desc" : "Disable this button",
308 "sig" : "()\n{\n\n}",
312 "isConstructor" : false,
326 "desc" : "Enable this button",
327 "sig" : "()\n{\n\n}",
331 "isConstructor" : false,
345 "desc" : "Returns the button's underlying element",
346 "sig" : "()\n{\n\n}",
350 "isConstructor" : false,
362 "type" : "Roo.Element",
363 "desc" : "The element"
368 "name" : "setDisabled",
370 "desc" : "Convenience function for boolean enable/disable",
375 "isConstructor" : false,
387 "desc" : "True to enable, false to disable",
394 "name" : "setPressed",
396 "desc" : "Similar to toggle, but does not trigger event.",
401 "isConstructor" : false,
413 "desc" : "[required] Force a particular state",
420 "name" : "setVisible",
422 "desc" : "Convenience function for boolean show/hide",
427 "isConstructor" : false,
439 "desc" : "True to show, false to hide",
448 "desc" : "Destroys this Button and removes any listeners.",
449 "sig" : "()\n{\n\n}",
453 "isConstructor" : false,
467 "desc" : "Gets the text for this button",
468 "sig" : "()\n{\n\n}",
472 "isConstructor" : false,
485 "desc" : "The button text"
492 "desc" : "Sets this button's text",
497 "isConstructor" : false,
509 "desc" : "The button text",
518 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
523 "isConstructor" : false,
535 "desc" : "(optional) Force a particular state",
544 "desc" : "Hide this button",
545 "sig" : "()\n{\n\n}",
549 "isConstructor" : false,
561 "name" : "purgeListeners",
563 "desc" : "Removes all listeners for this object",
564 "sig" : "()\n{\n\n}",
566 "memberOf" : "Roo.util.Observable",
568 "isConstructor" : false,
582 "desc" : "Appends an event handler to this element (shorthand for addListener)",
583 "sig" : "(eventName, handler, scope, options)",
585 "memberOf" : "Roo.util.Observable",
587 "isConstructor" : false,
597 "name" : "eventName",
599 "desc" : "The type of event to listen for",
605 "desc" : "The method the event invokes",
611 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
617 "desc" : "(optional)",
626 "desc" : "Removes a listener (shorthand for removeListener)",
627 "sig" : "(eventName, handler, scope)",
629 "memberOf" : "Roo.util.Observable",
631 "isConstructor" : false,
641 "name" : "eventName",
643 "desc" : "The type of event to listen for",
649 "desc" : "The handler to remove",
655 "desc" : "(optional) The scope (this object) for the handler",
662 "name" : "addEvents",
664 "desc" : "Used to define events on this Observable",
667 "memberOf" : "Roo.util.Observable",
669 "isConstructor" : false,
681 "desc" : "The object with the events defined",
688 "name" : "releaseCapture",
690 "desc" : "Removes <b>all</b> added captures from the Observable.",
693 "memberOf" : "Roo.util.Observable",
695 "isConstructor" : false,
706 "type" : "Observable",
707 "desc" : "The Observable to release",
714 "name" : "removeListener",
716 "desc" : "Removes a listener",
717 "sig" : "(eventName, handler, scope)",
719 "memberOf" : "Roo.util.Observable",
721 "isConstructor" : false,
731 "name" : "eventName",
733 "desc" : "The type of event to listen for",
739 "desc" : "The handler to remove",
745 "desc" : "(optional) The scope (this object) for the handler",
752 "name" : "fireEvent",
754 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
755 "sig" : "(eventName, args)",
757 "memberOf" : "Roo.util.Observable",
759 "isConstructor" : false,
769 "name" : "eventName",
776 "type" : "Object...",
777 "desc" : "Variable number of parameters are passed to handlers",
785 "desc" : "returns false if any of the handlers return false otherwise it returns true"
790 "name" : "hasListener",
792 "desc" : "Checks to see if this object has any listeners for a specified event",
793 "sig" : "(eventName)",
795 "memberOf" : "Roo.util.Observable",
797 "isConstructor" : false,
807 "name" : "eventName",
809 "desc" : "The name of the event to check for",
817 "desc" : "True if the event is being listened for, else false"
824 "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.",
825 "sig" : "(o, fn, scope)",
827 "memberOf" : "Roo.util.Observable",
829 "isConstructor" : false,
840 "type" : "Observable",
841 "desc" : "The Observable to capture",
847 "desc" : "The function to call",
853 "desc" : "(optional) The scope (this object) for the fn",
860 "name" : "addListener",
862 "desc" : "Appends an event handler to this component",
863 "sig" : "(eventName, handler, scope, options)",
865 "memberOf" : "Roo.util.Observable",
867 "isConstructor" : false,
877 "name" : "eventName",
879 "desc" : "The type of event to listen for",
885 "desc" : "The method the event invokes",
891 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
897 "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>",
908 "desc" : "Fires when the button is rendered",
909 "sig" : "function (_self)\n{\n\n}",
928 "desc" : "Fires when this button is clicked",
929 "sig" : "function (_self, e)\n{\n\n}",
944 "type" : "EventObject",
945 "desc" : "The click event",
952 "name" : "mouseover",
954 "desc" : "Fires when the mouse hovers over the button",
955 "sig" : "function (_self, e)\n{\n\n}",
971 "desc" : "The event object",
980 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
981 "sig" : "function (_self, pressed)\n{\n\n}",
1004 "name" : "mouseout",
1005 "type" : "function",
1006 "desc" : "Fires when the mouse exits the button",
1007 "sig" : "function (_self, e)\n{\n\n}",
1018 "isOptional" : false
1023 "desc" : "The event object",
1024 "isOptional" : false