2 "name" : "Roo.Toolbar.SplitButton",
11 "desc" : "A menu button that renders into a toolbar.",
12 "isSingleton" : false,
16 "isBuilderTop" : false,
17 "memberOf" : "SplitButton",
26 "desc" : "A standard {@link Roo.SplitButton} config object",
37 "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>",
38 "memberOf" : "Roo.util.Observable",
44 "type" : "String/Object",
45 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
46 "memberOf" : "Roo.Button",
53 "desc" : "The button text",
54 "memberOf" : "Roo.Button",
60 "type" : "String/HTMLElement/Element",
61 "desc" : "The element to append the button to",
62 "memberOf" : "Roo.Button",
69 "desc" : "True to start hidden (defaults to false)",
70 "memberOf" : "Roo.Button",
75 "name" : "toggleGroup",
77 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
78 "memberOf" : "Roo.Button",
83 "name" : "handleMouseEvents",
85 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
86 "memberOf" : "Roo.Button",
92 "type" : "Roo.menu.Menu",
93 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
94 "memberOf" : "Roo.Button",
99 "name" : "enableToggle",
101 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
102 "memberOf" : "Roo.Button",
103 "isOptional" : false,
107 "name" : "arrowHandler",
109 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
110 "memberOf" : "Roo.SplitButton",
111 "isOptional" : false,
117 "desc" : "A function called when the button is clicked (can be used instead of click event)",
118 "memberOf" : "Roo.Button",
119 "isOptional" : false,
125 "desc" : "The scope of the handler",
126 "memberOf" : "Roo.Button",
127 "isOptional" : false,
133 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
134 "memberOf" : "Roo.Button",
135 "isOptional" : false,
141 "desc" : "True to start disabled (defaults to false)",
142 "memberOf" : "Roo.Button",
143 "isOptional" : false,
149 "desc" : "True to start pressed (only if enableToggle = true)",
150 "memberOf" : "Roo.Button",
151 "isOptional" : false,
156 "type" : "Roo.Template",
157 "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.",
158 "memberOf" : "Roo.Button",
159 "isOptional" : false,
165 "desc" : "A CSS class to apply to the button's main element.",
166 "memberOf" : "Roo.Button",
167 "isOptional" : false,
173 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
174 "memberOf" : "Roo.Button",
175 "isOptional" : false,
181 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
182 "memberOf" : "Roo.Button",
183 "isOptional" : false,
187 "name" : "menuAlign",
189 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
190 "memberOf" : "Roo.Button",
191 "isOptional" : false,
197 "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\")",
198 "memberOf" : "Roo.Button",
199 "isOptional" : false,
203 "name" : "tooltipType",
205 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
206 "memberOf" : "Roo.Button",
207 "isOptional" : false,
211 "name" : "arrowTooltip",
213 "desc" : "The title attribute of the arrow",
214 "memberOf" : "Roo.SplitButton",
215 "isOptional" : false,
219 "name" : "clickEvent",
221 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
222 "memberOf" : "Roo.Button",
223 "isOptional" : false,
228 "type" : "Boolean/Object",
229 "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).",
230 "memberOf" : "Roo.Button",
231 "isOptional" : false,
237 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
238 "memberOf" : "Roo.Button",
239 "isOptional" : false,
247 "desc" : "Removes and destroys this button",
248 "sig" : "()\n{\n\n}",
252 "isConstructor" : false,
266 "desc" : "Hides this button",
267 "sig" : "()\n{\n\n}",
271 "isConstructor" : false,
285 "desc" : "Shows this button",
286 "sig" : "()\n{\n\n}",
290 "isConstructor" : false,
302 "name" : "setArrowHandler",
304 "desc" : "Sets this button's arrow click handler",
305 "sig" : "(handler, scope)",
307 "memberOf" : "Roo.SplitButton",
309 "isConstructor" : false,
321 "desc" : "The function to call when the arrow is clicked",
327 "desc" : "(optional) Scope for the function passed above",
336 "desc" : "Focus the button",
337 "sig" : "()\n{\n\n}",
339 "memberOf" : "Roo.SplitButton",
341 "isConstructor" : false,
353 "name" : "setHandler",
355 "desc" : "Sets this button's click handler",
356 "sig" : "(handler, scope)",
358 "memberOf" : "Roo.SplitButton",
360 "isConstructor" : false,
372 "desc" : "The function to call when the button is clicked",
378 "desc" : "(optional) Scope for the function passed above",
387 "desc" : "Disable this button",
388 "sig" : "()\n{\n\n}",
390 "memberOf" : "Roo.Button",
392 "isConstructor" : false,
406 "desc" : "Enable this button",
407 "sig" : "()\n{\n\n}",
409 "memberOf" : "Roo.Button",
411 "isConstructor" : false,
425 "desc" : "Returns the button's underlying element",
426 "sig" : "()\n{\n\n}",
428 "memberOf" : "Roo.Button",
430 "isConstructor" : false,
442 "type" : "Roo.Element",
443 "desc" : "The element"
448 "name" : "setDisabled",
450 "desc" : "Convenience function for boolean enable/disable",
453 "memberOf" : "Roo.Button",
455 "isConstructor" : false,
467 "desc" : "True to enable, false to disable",
474 "name" : "setVisible",
476 "desc" : "Convenience function for boolean show/hide",
479 "memberOf" : "Roo.Button",
481 "isConstructor" : false,
493 "desc" : "True to show, false to hide",
502 "desc" : "Gets the text for this button",
503 "sig" : "()\n{\n\n}",
505 "memberOf" : "Roo.Button",
507 "isConstructor" : false,
520 "desc" : "The button text"
527 "desc" : "Sets this button's text",
530 "memberOf" : "Roo.Button",
532 "isConstructor" : false,
544 "desc" : "The button text",
553 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
556 "memberOf" : "Roo.Button",
558 "isConstructor" : false,
570 "desc" : "(optional) Force a particular state",
577 "name" : "purgeListeners",
579 "desc" : "Removes all listeners for this object",
580 "sig" : "()\n{\n\n}",
582 "memberOf" : "Roo.util.Observable",
584 "isConstructor" : false,
598 "desc" : "Appends an event handler to this element (shorthand for addListener)",
599 "sig" : "(eventName, handler, scope, options)",
601 "memberOf" : "Roo.util.Observable",
603 "isConstructor" : false,
613 "name" : "eventName",
615 "desc" : "The type of event to listen for",
621 "desc" : "The method the event invokes",
627 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
633 "desc" : "(optional)",
642 "desc" : "Removes a listener (shorthand for removeListener)",
643 "sig" : "(eventName, handler, scope)",
645 "memberOf" : "Roo.util.Observable",
647 "isConstructor" : false,
657 "name" : "eventName",
659 "desc" : "The type of event to listen for",
665 "desc" : "The handler to remove",
671 "desc" : "(optional) The scope (this object) for the handler",
678 "name" : "addEvents",
680 "desc" : "Used to define events on this Observable",
683 "memberOf" : "Roo.util.Observable",
685 "isConstructor" : false,
697 "desc" : "The object with the events defined",
704 "name" : "releaseCapture",
706 "desc" : "Removes <b>all</b> added captures from the Observable.",
709 "memberOf" : "Roo.util.Observable",
711 "isConstructor" : false,
722 "type" : "Observable",
723 "desc" : "The Observable to release",
730 "name" : "removeListener",
732 "desc" : "Removes a listener",
733 "sig" : "(eventName, handler, scope)",
735 "memberOf" : "Roo.util.Observable",
737 "isConstructor" : false,
747 "name" : "eventName",
749 "desc" : "The type of event to listen for",
755 "desc" : "The handler to remove",
761 "desc" : "(optional) The scope (this object) for the handler",
768 "name" : "fireEvent",
770 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
771 "sig" : "(eventName, args)",
773 "memberOf" : "Roo.util.Observable",
775 "isConstructor" : false,
785 "name" : "eventName",
792 "type" : "Object...",
793 "desc" : "Variable number of parameters are passed to handlers",
801 "desc" : "returns false if any of the handlers return false otherwise it returns true"
806 "name" : "hasListener",
808 "desc" : "Checks to see if this object has any listeners for a specified event",
809 "sig" : "(eventName)",
811 "memberOf" : "Roo.util.Observable",
813 "isConstructor" : false,
823 "name" : "eventName",
825 "desc" : "The name of the event to check for",
833 "desc" : "True if the event is being listened for, else false"
840 "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.",
841 "sig" : "(o, fn, scope)",
843 "memberOf" : "Roo.util.Observable",
845 "isConstructor" : false,
856 "type" : "Observable",
857 "desc" : "The Observable to capture",
863 "desc" : "The function to call",
869 "desc" : "(optional) The scope (this object) for the fn",
876 "name" : "addListener",
878 "desc" : "Appends an event handler to this component",
879 "sig" : "(eventName, handler, scope, options)",
881 "memberOf" : "Roo.util.Observable",
883 "isConstructor" : false,
893 "name" : "eventName",
895 "desc" : "The type of event to listen for",
901 "desc" : "The method the event invokes",
907 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
913 "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>",
922 "name" : "arrowclick",
924 "desc" : "Fires when this button's arrow is clicked",
925 "sig" : "function (_self, e)\n{\n\n}",
926 "memberOf" : "Roo.SplitButton",
934 "type" : "SplitButton",
940 "type" : "EventObject",
941 "desc" : "The click event",
950 "desc" : "Fires when the button is rendered",
951 "sig" : "function (_self)\n{\n\n}",
952 "memberOf" : "Roo.Button",
970 "desc" : "Fires when this button is clicked",
971 "sig" : "function (_self, e)\n{\n\n}",
972 "memberOf" : "Roo.Button",
986 "type" : "EventObject",
987 "desc" : "The click event",
994 "name" : "mouseover",
996 "desc" : "Fires when the mouse hovers over the button",
997 "sig" : "function (_self, e)\n{\n\n}",
998 "memberOf" : "Roo.Button",
1008 "isOptional" : false
1013 "desc" : "The event object",
1014 "isOptional" : false
1021 "type" : "function",
1022 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
1023 "sig" : "function (_self, pressed)\n{\n\n}",
1024 "memberOf" : "Roo.Button",
1034 "isOptional" : false
1040 "isOptional" : false
1046 "name" : "mouseout",
1047 "type" : "function",
1048 "desc" : "Fires when the mouse exits the button",
1049 "sig" : "function (_self, e)\n{\n\n}",
1050 "memberOf" : "Roo.Button",
1060 "isOptional" : false
1065 "desc" : "The event object",
1066 "isOptional" : false