2 "name" : "Roo.Toolbar.Button",
10 "desc" : "A button that renders into a toolbar.",
11 "isSingleton" : false,
15 "isBuilderTop" : false,
16 "memberOf" : "Button",
25 "desc" : "A standard {@link Roo.Button} config object",
36 "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>",
37 "memberOf" : "Roo.util.Observable",
43 "type" : "String/Object",
44 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
45 "memberOf" : "Roo.Button",
52 "desc" : "The button text",
53 "memberOf" : "Roo.Button",
59 "type" : "String/HTMLElement/Element",
60 "desc" : "The element to append the button to",
61 "memberOf" : "Roo.Button",
68 "desc" : "True to start hidden (defaults to false)",
69 "memberOf" : "Roo.Button",
74 "name" : "toggleGroup",
76 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
77 "memberOf" : "Roo.Button",
82 "name" : "handleMouseEvents",
84 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
85 "memberOf" : "Roo.Button",
91 "type" : "Roo.menu.Menu",
92 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
93 "memberOf" : "Roo.Button",
98 "name" : "enableToggle",
100 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
101 "memberOf" : "Roo.Button",
102 "isOptional" : false,
108 "desc" : "A function called when the button is clicked (can be used instead of click event)",
109 "memberOf" : "Roo.Button",
110 "isOptional" : false,
116 "desc" : "The scope of the handler",
117 "memberOf" : "Roo.Button",
118 "isOptional" : false,
124 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
125 "memberOf" : "Roo.Button",
126 "isOptional" : false,
132 "desc" : "True to start disabled (defaults to false)",
133 "memberOf" : "Roo.Button",
134 "isOptional" : false,
140 "desc" : "True to start pressed (only if enableToggle = true)",
141 "memberOf" : "Roo.Button",
142 "isOptional" : false,
147 "type" : "Roo.Template",
148 "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.",
149 "memberOf" : "Roo.Button",
150 "isOptional" : false,
156 "desc" : "A CSS class to apply to the button's main element.",
157 "memberOf" : "Roo.Button",
158 "isOptional" : false,
164 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
165 "memberOf" : "Roo.Button",
166 "isOptional" : false,
172 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
173 "memberOf" : "Roo.Button",
174 "isOptional" : false,
178 "name" : "menuAlign",
180 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
181 "memberOf" : "Roo.Button",
182 "isOptional" : false,
188 "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\")",
189 "memberOf" : "Roo.Button",
190 "isOptional" : false,
194 "name" : "tooltipType",
196 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
197 "memberOf" : "Roo.Button",
198 "isOptional" : false,
202 "name" : "clickEvent",
204 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
205 "memberOf" : "Roo.Button",
206 "isOptional" : false,
211 "type" : "Boolean/Object",
212 "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).",
213 "memberOf" : "Roo.Button",
214 "isOptional" : false,
220 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
221 "memberOf" : "Roo.Button",
222 "isOptional" : false,
230 "desc" : "Disables this item",
231 "sig" : "()\n{\n\n}",
235 "isConstructor" : false,
249 "desc" : "Enables this item",
250 "sig" : "()\n{\n\n}",
254 "isConstructor" : false,
268 "desc" : "Removes and destroys this button",
269 "sig" : "()\n{\n\n}",
273 "isConstructor" : false,
287 "desc" : "Hides this button",
288 "sig" : "()\n{\n\n}",
292 "isConstructor" : false,
306 "desc" : "Shows this button",
307 "sig" : "()\n{\n\n}",
311 "isConstructor" : false,
325 "desc" : "Focus the button",
326 "sig" : "()\n{\n\n}",
328 "memberOf" : "Roo.Button",
330 "isConstructor" : false,
342 "name" : "setHandler",
344 "desc" : "Assigns this button's click handler",
345 "sig" : "(handler, scope)",
347 "memberOf" : "Roo.Button",
349 "isConstructor" : false,
361 "desc" : "The function to call when the button is clicked",
367 "desc" : "(optional) Scope for the function passed in",
376 "desc" : "Returns the button's underlying element",
377 "sig" : "()\n{\n\n}",
379 "memberOf" : "Roo.Button",
381 "isConstructor" : false,
393 "type" : "Roo.Element",
394 "desc" : "The element"
399 "name" : "setDisabled",
401 "desc" : "Convenience function for boolean enable/disable",
404 "memberOf" : "Roo.Button",
406 "isConstructor" : false,
418 "desc" : "True to enable, false to disable",
425 "name" : "setPressed",
427 "desc" : "Similar to toggle, but does not trigger event.",
430 "memberOf" : "Roo.Button",
432 "isConstructor" : false,
444 "desc" : "[required] Force a particular state",
451 "name" : "setVisible",
453 "desc" : "Convenience function for boolean show/hide",
456 "memberOf" : "Roo.Button",
458 "isConstructor" : false,
470 "desc" : "True to show, false to hide",
479 "desc" : "Gets the text for this button",
480 "sig" : "()\n{\n\n}",
482 "memberOf" : "Roo.Button",
484 "isConstructor" : false,
497 "desc" : "The button text"
504 "desc" : "Sets this button's text",
507 "memberOf" : "Roo.Button",
509 "isConstructor" : false,
521 "desc" : "The button text",
530 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
533 "memberOf" : "Roo.Button",
535 "isConstructor" : false,
547 "desc" : "(optional) Force a particular state",
554 "name" : "purgeListeners",
556 "desc" : "Removes all listeners for this object",
557 "sig" : "()\n{\n\n}",
559 "memberOf" : "Roo.util.Observable",
561 "isConstructor" : false,
575 "desc" : "Appends an event handler to this element (shorthand for addListener)",
576 "sig" : "(eventName, handler, scope, options)",
578 "memberOf" : "Roo.util.Observable",
580 "isConstructor" : false,
590 "name" : "eventName",
592 "desc" : "The type of event to listen for",
598 "desc" : "The method the event invokes",
604 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
610 "desc" : "(optional)",
619 "desc" : "Removes a listener (shorthand for removeListener)",
620 "sig" : "(eventName, handler, scope)",
622 "memberOf" : "Roo.util.Observable",
624 "isConstructor" : false,
634 "name" : "eventName",
636 "desc" : "The type of event to listen for",
642 "desc" : "The handler to remove",
648 "desc" : "(optional) The scope (this object) for the handler",
655 "name" : "addEvents",
657 "desc" : "Used to define events on this Observable",
660 "memberOf" : "Roo.util.Observable",
662 "isConstructor" : false,
674 "desc" : "The object with the events defined",
681 "name" : "releaseCapture",
683 "desc" : "Removes <b>all</b> added captures from the Observable.",
686 "memberOf" : "Roo.util.Observable",
688 "isConstructor" : false,
699 "type" : "Observable",
700 "desc" : "The Observable to release",
707 "name" : "removeListener",
709 "desc" : "Removes a listener",
710 "sig" : "(eventName, handler, scope)",
712 "memberOf" : "Roo.util.Observable",
714 "isConstructor" : false,
724 "name" : "eventName",
726 "desc" : "The type of event to listen for",
732 "desc" : "The handler to remove",
738 "desc" : "(optional) The scope (this object) for the handler",
745 "name" : "fireEvent",
747 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
748 "sig" : "(eventName, args)",
750 "memberOf" : "Roo.util.Observable",
752 "isConstructor" : false,
762 "name" : "eventName",
769 "type" : "Object...",
770 "desc" : "Variable number of parameters are passed to handlers",
778 "desc" : "returns false if any of the handlers return false otherwise it returns true"
783 "name" : "hasListener",
785 "desc" : "Checks to see if this object has any listeners for a specified event",
786 "sig" : "(eventName)",
788 "memberOf" : "Roo.util.Observable",
790 "isConstructor" : false,
800 "name" : "eventName",
802 "desc" : "The name of the event to check for",
810 "desc" : "True if the event is being listened for, else false"
817 "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.",
818 "sig" : "(o, fn, scope)",
820 "memberOf" : "Roo.util.Observable",
822 "isConstructor" : false,
833 "type" : "Observable",
834 "desc" : "The Observable to capture",
840 "desc" : "The function to call",
846 "desc" : "(optional) The scope (this object) for the fn",
853 "name" : "addListener",
855 "desc" : "Appends an event handler to this component",
856 "sig" : "(eventName, handler, scope, options)",
858 "memberOf" : "Roo.util.Observable",
860 "isConstructor" : false,
870 "name" : "eventName",
872 "desc" : "The type of event to listen for",
878 "desc" : "The method the event invokes",
884 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
890 "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>",
901 "desc" : "Fires when the button is rendered",
902 "sig" : "function (_self)\n{\n\n}",
903 "memberOf" : "Roo.Button",
921 "desc" : "Fires when this button is clicked",
922 "sig" : "function (_self, e)\n{\n\n}",
923 "memberOf" : "Roo.Button",
937 "type" : "EventObject",
938 "desc" : "The click event",
945 "name" : "mouseover",
947 "desc" : "Fires when the mouse hovers over the button",
948 "sig" : "function (_self, e)\n{\n\n}",
949 "memberOf" : "Roo.Button",
964 "desc" : "The event object",
973 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
974 "sig" : "function (_self, pressed)\n{\n\n}",
975 "memberOf" : "Roo.Button",
999 "desc" : "Fires when the mouse exits the button",
1000 "sig" : "function (_self, e)\n{\n\n}",
1001 "memberOf" : "Roo.Button",
1011 "isOptional" : false
1016 "desc" : "The event object",
1017 "isOptional" : false