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",
29 "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>",
30 "memberOf" : "Roo.util.Observable",
35 "type" : "String/Object",
36 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
37 "memberOf" : "Roo.Button",
43 "desc" : "The button text",
44 "memberOf" : "Roo.Button",
49 "type" : "String/HTMLElement/Element",
50 "desc" : "The element to append the button to",
51 "memberOf" : "Roo.Button",
57 "desc" : "True to start hidden (defaults to false)",
58 "memberOf" : "Roo.Button",
62 "name" : "toggleGroup",
64 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
65 "memberOf" : "Roo.Button",
69 "name" : "handleMouseEvents",
71 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
72 "memberOf" : "Roo.Button",
78 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
79 "memberOf" : "Roo.Button",
83 "name" : "enableToggle",
85 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
86 "memberOf" : "Roo.Button",
92 "desc" : "A function called when the button is clicked (can be used instead of click event)",
93 "memberOf" : "Roo.Button",
99 "desc" : "The scope of the handler",
100 "memberOf" : "Roo.Button",
106 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
107 "memberOf" : "Roo.Button",
113 "desc" : "True to start disabled (defaults to false)",
114 "memberOf" : "Roo.Button",
120 "desc" : "True to start pressed (only if enableToggle = true)",
121 "memberOf" : "Roo.Button",
126 "type" : "Roo.Template",
127 "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.",
128 "memberOf" : "Roo.Button",
134 "desc" : "A CSS class to apply to the button's main element.",
135 "memberOf" : "Roo.Button",
141 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
142 "memberOf" : "Roo.Button",
148 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
149 "memberOf" : "Roo.Button",
153 "name" : "menuAlign",
155 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
156 "memberOf" : "Roo.Button",
162 "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\")",
163 "memberOf" : "Roo.Button",
167 "name" : "tooltipType",
169 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
170 "memberOf" : "Roo.Button",
174 "name" : "clickEvent",
176 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
177 "memberOf" : "Roo.Button",
182 "type" : "Boolean/Object",
183 "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).",
184 "memberOf" : "Roo.Button",
190 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
191 "memberOf" : "Roo.Button",
198 "desc" : "Disables this item",
200 "isConstructor" : false,
202 "memberOf" : "Roo.Toolbar.Button",
212 "desc" : "Enables this item",
214 "isConstructor" : false,
216 "memberOf" : "Roo.Toolbar.Button",
226 "desc" : "Removes and destroys this button",
228 "isConstructor" : false,
230 "memberOf" : "Roo.Toolbar.Button",
240 "desc" : "Hides this button",
242 "isConstructor" : false,
244 "memberOf" : "Roo.Toolbar.Button",
254 "desc" : "Shows this button",
256 "isConstructor" : false,
258 "memberOf" : "Roo.Toolbar.Button",
268 "desc" : "Focus the button",
270 "isConstructor" : false,
272 "memberOf" : "Roo.Button",
281 "name" : "setHandler",
282 "desc" : "Assigns this button's click handler",
284 "isConstructor" : false,
286 "memberOf" : "Roo.Button",
295 "desc" : "The function to call when the button is clicked",
301 "desc" : "(optional) Scope for the function passed in",
309 "desc" : "Returns the button's underlying element",
311 "isConstructor" : false,
313 "memberOf" : "Roo.Button",
322 "type" : "Roo.Element",
323 "desc" : "The element"
328 "name" : "setDisabled",
329 "desc" : "Convenience function for boolean enable/disable",
331 "isConstructor" : false,
333 "memberOf" : "Roo.Button",
342 "desc" : "True to enable, false to disable",
349 "name" : "setVisible",
350 "desc" : "Convenience function for boolean show/hide",
352 "isConstructor" : false,
354 "memberOf" : "Roo.Button",
363 "desc" : "True to show, false to hide",
371 "desc" : "Gets the text for this button",
373 "isConstructor" : false,
375 "memberOf" : "Roo.Button",
385 "desc" : "The button text"
391 "desc" : "Sets this button's text",
393 "isConstructor" : false,
395 "memberOf" : "Roo.Button",
404 "desc" : "The button text",
412 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
414 "isConstructor" : false,
416 "memberOf" : "Roo.Button",
425 "desc" : "(optional) Force a particular state",
432 "name" : "purgeListeners",
433 "desc" : "Removes all listeners for this object",
435 "isConstructor" : false,
437 "memberOf" : "Roo.util.Observable",
447 "desc" : "Appends an event handler to this element (shorthand for addListener)",
449 "isConstructor" : false,
451 "memberOf" : "Roo.util.Observable",
458 "name" : "eventName",
460 "desc" : "The type of event to listen for",
466 "desc" : "The method the event invokes",
472 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
478 "desc" : "(optional)",
486 "desc" : "Removes a listener (shorthand for removeListener)",
488 "isConstructor" : false,
490 "memberOf" : "Roo.util.Observable",
497 "name" : "eventName",
499 "desc" : "The type of event to listen for",
505 "desc" : "The handler to remove",
511 "desc" : "(optional) The scope (this object) for the handler",
518 "name" : "addEvents",
519 "desc" : "Used to define events on this Observable",
521 "isConstructor" : false,
523 "memberOf" : "Roo.util.Observable",
532 "desc" : "The object with the events defined",
539 "name" : "releaseCapture",
540 "desc" : "Removes <b>all</b> added captures from the Observable.",
542 "isConstructor" : false,
544 "memberOf" : "Roo.util.Observable",
552 "type" : "Observable",
553 "desc" : "The Observable to release",
560 "name" : "removeListener",
561 "desc" : "Removes a listener",
563 "isConstructor" : false,
565 "memberOf" : "Roo.util.Observable",
572 "name" : "eventName",
574 "desc" : "The type of event to listen for",
580 "desc" : "The handler to remove",
586 "desc" : "(optional) The scope (this object) for the handler",
593 "name" : "fireEvent",
594 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
596 "isConstructor" : false,
598 "memberOf" : "Roo.util.Observable",
605 "name" : "eventName",
612 "type" : "Object...",
613 "desc" : "Variable number of parameters are passed to handlers",
621 "desc" : "returns false if any of the handlers return false otherwise it returns true"
626 "name" : "hasListener",
627 "desc" : "Checks to see if this object has any listeners for a specified event",
629 "isConstructor" : false,
631 "memberOf" : "Roo.util.Observable",
638 "name" : "eventName",
640 "desc" : "The name of the event to check for",
648 "desc" : "True if the event is being listened for, else false"
654 "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.",
656 "isConstructor" : false,
658 "memberOf" : "Roo.util.Observable",
666 "type" : "Observable",
667 "desc" : "The Observable to capture",
673 "desc" : "The function to call",
679 "desc" : "(optional) The scope (this object) for the fn",
686 "name" : "addListener",
687 "desc" : "Appends an event handler to this component",
689 "isConstructor" : false,
691 "memberOf" : "Roo.util.Observable",
698 "name" : "eventName",
700 "desc" : "The type of event to listen for",
706 "desc" : "The method the event invokes",
712 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
718 "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>",
728 "desc" : "Fires when the button is rendered",
729 "memberOf" : "Roo.Button",
746 "desc" : "Fires when this button is clicked",
747 "memberOf" : "Roo.Button",
761 "type" : "EventObject",
762 "desc" : "The click event",
769 "name" : "mouseover",
770 "desc" : "Fires when the mouse hovers over the button",
771 "memberOf" : "Roo.Button",
786 "desc" : "The event object",
794 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
795 "memberOf" : "Roo.Button",
818 "desc" : "Fires when the mouse exits the button",
819 "memberOf" : "Roo.Button",
834 "desc" : "The event object",