6 "desc" : "Simple Button class",
10 "memberOf" : "Button",
19 "desc" : "The 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"
35 "type" : "String/Object",
36 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
42 "desc" : "The button text",
47 "type" : "String/HTMLElement/Element",
48 "desc" : "The element to append the button to",
54 "desc" : "True to start hidden (defaults to false)",
58 "name" : "toggleGroup",
60 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
64 "name" : "handleMouseEvents",
66 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
71 "type" : "Roo.menu.Menu",
72 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
76 "name" : "enableToggle",
78 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
84 "desc" : "A function called when the button is clicked (can be used instead of click event)",
90 "desc" : "The scope of the handler",
96 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
102 "desc" : "True to start disabled (defaults to false)",
108 "desc" : "True to start pressed (only if enableToggle = true)",
113 "type" : "Roo.Template",
114 "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.",
120 "desc" : "A CSS class to apply to the button's main element.",
126 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
132 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
136 "name" : "menuAlign",
138 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
144 "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\")",
148 "name" : "tooltipType",
150 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
154 "name" : "clickEvent",
156 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
161 "type" : "Boolean/Object",
162 "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).",
168 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
176 "desc" : "Show this button",
177 "sig" : "()\n{\n\n}",
181 "isConstructor" : false,
195 "desc" : "Focus the button",
196 "sig" : "()\n{\n\n}",
200 "isConstructor" : false,
212 "name" : "setHandler",
214 "desc" : "Assigns this button's click handler",
215 "sig" : "(handler, scope)",
219 "isConstructor" : false,
231 "desc" : "The function to call when the button is clicked",
237 "desc" : "(optional) Scope for the function passed in",
246 "desc" : "Disable this button",
247 "sig" : "()\n{\n\n}",
251 "isConstructor" : false,
265 "desc" : "Enable this button",
266 "sig" : "()\n{\n\n}",
270 "isConstructor" : false,
284 "desc" : "Returns the button's underlying element",
285 "sig" : "()\n{\n\n}",
289 "isConstructor" : false,
301 "type" : "Roo.Element",
302 "desc" : "The element"
307 "name" : "setDisabled",
309 "desc" : "Convenience function for boolean enable/disable",
314 "isConstructor" : false,
326 "desc" : "True to enable, false to disable",
333 "name" : "setVisible",
335 "desc" : "Convenience function for boolean show/hide",
340 "isConstructor" : false,
352 "desc" : "True to show, false to hide",
361 "desc" : "Destroys this Button and removes any listeners.",
362 "sig" : "()\n{\n\n}",
366 "isConstructor" : false,
380 "desc" : "Gets the text for this button",
381 "sig" : "()\n{\n\n}",
385 "isConstructor" : false,
398 "desc" : "The button text"
405 "desc" : "Sets this button's text",
410 "isConstructor" : false,
422 "desc" : "The button text",
431 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
436 "isConstructor" : false,
448 "desc" : "(optional) Force a particular state",
457 "desc" : "Hide this button",
458 "sig" : "()\n{\n\n}",
462 "isConstructor" : false,
474 "name" : "purgeListeners",
476 "desc" : "Removes all listeners for this object",
477 "sig" : "()\n{\n\n}",
479 "memberOf" : "Roo.util.Observable",
481 "isConstructor" : false,
495 "desc" : "Appends an event handler to this element (shorthand for addListener)",
496 "sig" : "(eventName, handler, scope, options)",
498 "memberOf" : "Roo.util.Observable",
500 "isConstructor" : false,
510 "name" : "eventName",
512 "desc" : "The type of event to listen for",
518 "desc" : "The method the event invokes",
524 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
530 "desc" : "(optional)",
539 "desc" : "Removes a listener (shorthand for removeListener)",
540 "sig" : "(eventName, handler, scope)",
542 "memberOf" : "Roo.util.Observable",
544 "isConstructor" : false,
554 "name" : "eventName",
556 "desc" : "The type of event to listen for",
562 "desc" : "The handler to remove",
568 "desc" : "(optional) The scope (this object) for the handler",
575 "name" : "addEvents",
577 "desc" : "Used to define events on this Observable",
580 "memberOf" : "Roo.util.Observable",
582 "isConstructor" : false,
594 "desc" : "The object with the events defined",
601 "name" : "releaseCapture",
603 "desc" : "Removes <b>all</b> added captures from the Observable.",
606 "memberOf" : "Roo.util.Observable",
608 "isConstructor" : false,
619 "type" : "Observable",
620 "desc" : "The Observable to release",
627 "name" : "removeListener",
629 "desc" : "Removes a listener",
630 "sig" : "(eventName, handler, scope)",
632 "memberOf" : "Roo.util.Observable",
634 "isConstructor" : false,
644 "name" : "eventName",
646 "desc" : "The type of event to listen for",
652 "desc" : "The handler to remove",
658 "desc" : "(optional) The scope (this object) for the handler",
665 "name" : "fireEvent",
667 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
668 "sig" : "(eventName, args)",
670 "memberOf" : "Roo.util.Observable",
672 "isConstructor" : false,
682 "name" : "eventName",
689 "type" : "Object...",
690 "desc" : "Variable number of parameters are passed to handlers",
698 "desc" : "returns false if any of the handlers return false otherwise it returns true"
703 "name" : "hasListener",
705 "desc" : "Checks to see if this object has any listeners for a specified event",
706 "sig" : "(eventName)",
708 "memberOf" : "Roo.util.Observable",
710 "isConstructor" : false,
720 "name" : "eventName",
722 "desc" : "The name of the event to check for",
730 "desc" : "True if the event is being listened for, else false"
737 "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.",
738 "sig" : "(o, fn, scope)",
740 "memberOf" : "Roo.util.Observable",
742 "isConstructor" : false,
753 "type" : "Observable",
754 "desc" : "The Observable to capture",
760 "desc" : "The function to call",
766 "desc" : "(optional) The scope (this object) for the fn",
773 "name" : "addListener",
775 "desc" : "Appends an event handler to this component",
776 "sig" : "(eventName, handler, scope, options)",
778 "memberOf" : "Roo.util.Observable",
780 "isConstructor" : false,
790 "name" : "eventName",
792 "desc" : "The type of event to listen for",
798 "desc" : "The method the event invokes",
804 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
810 "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>",
821 "desc" : "Fires when the button is rendered",
822 "sig" : "function (_self)\n{\n\n}",
841 "desc" : "Fires when this button is clicked",
842 "sig" : "function (_self, e)\n{\n\n}",
857 "type" : "EventObject",
858 "desc" : "The click event",
865 "name" : "mouseover",
867 "desc" : "Fires when the mouse hovers over the button",
868 "sig" : "function (_self, e)\n{\n\n}",
884 "desc" : "The event object",
893 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
894 "sig" : "function (_self, pressed)\n{\n\n}",
919 "desc" : "Fires when the mouse exits the button",
920 "sig" : "function (_self, e)\n{\n\n}",
936 "desc" : "The event object",