2 "name" : "Roo.Toolbar.Button",
7 "desc" : "A button that renders into a toolbar.",
11 "memberOf" : "Button",
20 "desc" : "A standard {@link Roo.Button} config object",
30 "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>",
31 "memberOf" : "Roo.util.Observable",
37 "type" : "String/Object",
38 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
39 "memberOf" : "Roo.Button",
46 "desc" : "The button text",
47 "memberOf" : "Roo.Button",
53 "type" : "String/HTMLElement/Element",
54 "desc" : "The element to append the button to",
55 "memberOf" : "Roo.Button",
62 "desc" : "True to start hidden (defaults to false)",
63 "memberOf" : "Roo.Button",
68 "name" : "toggleGroup",
70 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
71 "memberOf" : "Roo.Button",
76 "name" : "handleMouseEvents",
78 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
79 "memberOf" : "Roo.Button",
86 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
87 "memberOf" : "Roo.Button",
92 "name" : "enableToggle",
94 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
95 "memberOf" : "Roo.Button",
102 "desc" : "A function called when the button is clicked (can be used instead of click event)",
103 "memberOf" : "Roo.Button",
110 "desc" : "The scope of the handler",
111 "memberOf" : "Roo.Button",
118 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
119 "memberOf" : "Roo.Button",
126 "desc" : "True to start disabled (defaults to false)",
127 "memberOf" : "Roo.Button",
134 "desc" : "True to start pressed (only if enableToggle = true)",
135 "memberOf" : "Roo.Button",
141 "type" : "Roo.Template",
142 "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.",
143 "memberOf" : "Roo.Button",
150 "desc" : "A CSS class to apply to the button's main element.",
151 "memberOf" : "Roo.Button",
158 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
159 "memberOf" : "Roo.Button",
166 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
167 "memberOf" : "Roo.Button",
172 "name" : "menuAlign",
174 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
175 "memberOf" : "Roo.Button",
182 "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\")",
183 "memberOf" : "Roo.Button",
188 "name" : "tooltipType",
190 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
191 "memberOf" : "Roo.Button",
196 "name" : "clickEvent",
198 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
199 "memberOf" : "Roo.Button",
205 "type" : "Boolean/Object",
206 "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).",
207 "memberOf" : "Roo.Button",
214 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
215 "memberOf" : "Roo.Button",
223 "desc" : "Disables this item",
225 "isConstructor" : false,
227 "memberOf" : "Roo.Toolbar.Button",
239 "desc" : "Enables this item",
241 "isConstructor" : false,
243 "memberOf" : "Roo.Toolbar.Button",
255 "desc" : "Removes and destroys this button",
257 "isConstructor" : false,
259 "memberOf" : "Roo.Toolbar.Button",
271 "desc" : "Hides this button",
273 "isConstructor" : false,
275 "memberOf" : "Roo.Toolbar.Button",
287 "desc" : "Shows this button",
289 "isConstructor" : false,
291 "memberOf" : "Roo.Toolbar.Button",
303 "desc" : "Focus the button",
305 "isConstructor" : false,
307 "memberOf" : "Roo.Button",
318 "name" : "setHandler",
319 "desc" : "Assigns this button's click handler",
321 "isConstructor" : false,
323 "memberOf" : "Roo.Button",
332 "desc" : "The function to call when the button is clicked",
338 "desc" : "(optional) Scope for the function passed in",
347 "desc" : "Returns the button's underlying element",
349 "isConstructor" : false,
351 "memberOf" : "Roo.Button",
361 "type" : "Roo.Element",
362 "desc" : "The element"
367 "name" : "setDisabled",
368 "desc" : "Convenience function for boolean enable/disable",
370 "isConstructor" : false,
372 "memberOf" : "Roo.Button",
381 "desc" : "True to enable, false to disable",
389 "name" : "setVisible",
390 "desc" : "Convenience function for boolean show/hide",
392 "isConstructor" : false,
394 "memberOf" : "Roo.Button",
403 "desc" : "True to show, false to hide",
412 "desc" : "Gets the text for this button",
414 "isConstructor" : false,
416 "memberOf" : "Roo.Button",
427 "desc" : "The button text"
433 "desc" : "Sets this button's text",
435 "isConstructor" : false,
437 "memberOf" : "Roo.Button",
446 "desc" : "The button text",
455 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
457 "isConstructor" : false,
459 "memberOf" : "Roo.Button",
468 "desc" : "(optional) Force a particular state",
476 "name" : "purgeListeners",
477 "desc" : "Removes all listeners for this object",
479 "isConstructor" : false,
481 "memberOf" : "Roo.util.Observable",
493 "desc" : "Appends an event handler to this element (shorthand for addListener)",
495 "isConstructor" : false,
497 "memberOf" : "Roo.util.Observable",
504 "name" : "eventName",
506 "desc" : "The type of event to listen for",
512 "desc" : "The method the event invokes",
518 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
524 "desc" : "(optional)",
533 "desc" : "Removes a listener (shorthand for removeListener)",
535 "isConstructor" : false,
537 "memberOf" : "Roo.util.Observable",
544 "name" : "eventName",
546 "desc" : "The type of event to listen for",
552 "desc" : "The handler to remove",
558 "desc" : "(optional) The scope (this object) for the handler",
566 "name" : "addEvents",
567 "desc" : "Used to define events on this Observable",
569 "isConstructor" : false,
571 "memberOf" : "Roo.util.Observable",
580 "desc" : "The object with the events defined",
588 "name" : "releaseCapture",
589 "desc" : "Removes <b>all</b> added captures from the Observable.",
591 "isConstructor" : false,
593 "memberOf" : "Roo.util.Observable",
601 "type" : "Observable",
602 "desc" : "The Observable to release",
610 "name" : "removeListener",
611 "desc" : "Removes a listener",
613 "isConstructor" : false,
615 "memberOf" : "Roo.util.Observable",
622 "name" : "eventName",
624 "desc" : "The type of event to listen for",
630 "desc" : "The handler to remove",
636 "desc" : "(optional) The scope (this object) for the handler",
644 "name" : "fireEvent",
645 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
647 "isConstructor" : false,
649 "memberOf" : "Roo.util.Observable",
656 "name" : "eventName",
663 "type" : "Object...",
664 "desc" : "Variable number of parameters are passed to handlers",
672 "desc" : "returns false if any of the handlers return false otherwise it returns true"
677 "name" : "hasListener",
678 "desc" : "Checks to see if this object has any listeners for a specified event",
680 "isConstructor" : false,
682 "memberOf" : "Roo.util.Observable",
689 "name" : "eventName",
691 "desc" : "The name of the event to check for",
699 "desc" : "True if the event is being listened for, else false"
705 "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.",
707 "isConstructor" : false,
709 "memberOf" : "Roo.util.Observable",
717 "type" : "Observable",
718 "desc" : "The Observable to capture",
724 "desc" : "The function to call",
730 "desc" : "(optional) The scope (this object) for the fn",
738 "name" : "addListener",
739 "desc" : "Appends an event handler to this component",
741 "isConstructor" : false,
743 "memberOf" : "Roo.util.Observable",
750 "name" : "eventName",
752 "desc" : "The type of event to listen for",
758 "desc" : "The method the event invokes",
764 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
770 "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>",
781 "desc" : "Fires when the button is rendered",
782 "memberOf" : "Roo.Button",
800 "desc" : "Fires when this button is clicked",
801 "memberOf" : "Roo.Button",
815 "type" : "EventObject",
816 "desc" : "The click event",
824 "name" : "mouseover",
825 "desc" : "Fires when the mouse hovers over the button",
826 "memberOf" : "Roo.Button",
841 "desc" : "The event object",
850 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
851 "memberOf" : "Roo.Button",
875 "desc" : "Fires when the mouse exits the button",
876 "memberOf" : "Roo.Button",
891 "desc" : "The event object",