2 "name" : "Roo.Toolbar.SplitButton",
8 "desc" : "A menu button that renders into a toolbar.",
12 "memberOf" : "SplitButton",
21 "desc" : "A standard {@link Roo.SplitButton} config object",
32 "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>",
33 "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"
44 "desc" : "The button text",
45 "memberOf" : "Roo.Button"
49 "type" : "String/HTMLElement/Element",
50 "desc" : "The element to append the button to",
51 "memberOf" : "Roo.Button"
56 "desc" : "True to start hidden (defaults to false)",
57 "memberOf" : "Roo.Button"
60 "name" : "toggleGroup",
62 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
63 "memberOf" : "Roo.Button"
66 "name" : "handleMouseEvents",
68 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
69 "memberOf" : "Roo.Button"
73 "type" : "Roo.menu.Menu",
74 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
75 "memberOf" : "Roo.Button"
78 "name" : "enableToggle",
80 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
81 "memberOf" : "Roo.Button"
84 "name" : "arrowHandler",
86 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
87 "memberOf" : "Roo.SplitButton"
92 "desc" : "A function called when the button is clicked (can be used instead of click event)",
93 "memberOf" : "Roo.Button"
98 "desc" : "The scope of the handler",
99 "memberOf" : "Roo.Button"
104 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
105 "memberOf" : "Roo.Button"
110 "desc" : "True to start disabled (defaults to false)",
111 "memberOf" : "Roo.Button"
116 "desc" : "True to start pressed (only if enableToggle = true)",
117 "memberOf" : "Roo.Button"
121 "type" : "Roo.Template",
122 "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.",
123 "memberOf" : "Roo.Button"
128 "desc" : "A CSS class to apply to the button's main element.",
129 "memberOf" : "Roo.Button"
134 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
135 "memberOf" : "Roo.Button"
140 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
141 "memberOf" : "Roo.Button"
144 "name" : "menuAlign",
146 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
147 "memberOf" : "Roo.Button"
152 "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\")",
153 "memberOf" : "Roo.Button"
156 "name" : "tooltipType",
158 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
159 "memberOf" : "Roo.Button"
162 "name" : "arrowTooltip",
164 "desc" : "The title attribute of the arrow",
165 "memberOf" : "Roo.SplitButton"
168 "name" : "clickEvent",
170 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
171 "memberOf" : "Roo.Button"
175 "type" : "Boolean/Object",
176 "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).",
177 "memberOf" : "Roo.Button"
182 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
183 "memberOf" : "Roo.Button"
190 "desc" : "Removes and destroys this button",
191 "sig" : "()\n{\n\n}",
195 "isConstructor" : false,
209 "desc" : "Hides this button",
210 "sig" : "()\n{\n\n}",
214 "isConstructor" : false,
228 "desc" : "Shows this button",
229 "sig" : "()\n{\n\n}",
233 "isConstructor" : false,
245 "name" : "setArrowHandler",
247 "desc" : "Sets this button's arrow click handler",
248 "sig" : "(handler, scope)",
250 "memberOf" : "Roo.SplitButton",
252 "isConstructor" : false,
264 "desc" : "The function to call when the arrow is clicked",
270 "desc" : "(optional) Scope for the function passed above",
279 "desc" : "Focus the button",
280 "sig" : "()\n{\n\n}",
282 "memberOf" : "Roo.SplitButton",
284 "isConstructor" : false,
296 "name" : "setHandler",
298 "desc" : "Sets this button's click handler",
299 "sig" : "(handler, scope)",
301 "memberOf" : "Roo.SplitButton",
303 "isConstructor" : false,
315 "desc" : "The function to call when the button is clicked",
321 "desc" : "(optional) Scope for the function passed above",
330 "desc" : "Disable this button",
331 "sig" : "()\n{\n\n}",
333 "memberOf" : "Roo.Button",
335 "isConstructor" : false,
349 "desc" : "Enable this button",
350 "sig" : "()\n{\n\n}",
352 "memberOf" : "Roo.Button",
354 "isConstructor" : false,
368 "desc" : "Returns the button's underlying element",
369 "sig" : "()\n{\n\n}",
371 "memberOf" : "Roo.Button",
373 "isConstructor" : false,
385 "type" : "Roo.Element",
386 "desc" : "The element"
391 "name" : "setDisabled",
393 "desc" : "Convenience function for boolean enable/disable",
396 "memberOf" : "Roo.Button",
398 "isConstructor" : false,
410 "desc" : "True to enable, false to disable",
417 "name" : "setVisible",
419 "desc" : "Convenience function for boolean show/hide",
422 "memberOf" : "Roo.Button",
424 "isConstructor" : false,
436 "desc" : "True to show, false to hide",
445 "desc" : "Gets the text for this button",
446 "sig" : "()\n{\n\n}",
448 "memberOf" : "Roo.Button",
450 "isConstructor" : false,
463 "desc" : "The button text"
470 "desc" : "Sets this button's text",
473 "memberOf" : "Roo.Button",
475 "isConstructor" : false,
487 "desc" : "The button text",
496 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
499 "memberOf" : "Roo.Button",
501 "isConstructor" : false,
513 "desc" : "(optional) Force a particular state",
520 "name" : "purgeListeners",
522 "desc" : "Removes all listeners for this object",
523 "sig" : "()\n{\n\n}",
525 "memberOf" : "Roo.util.Observable",
527 "isConstructor" : false,
541 "desc" : "Appends an event handler to this element (shorthand for addListener)",
542 "sig" : "(eventName, handler, scope, options)",
544 "memberOf" : "Roo.util.Observable",
546 "isConstructor" : false,
556 "name" : "eventName",
558 "desc" : "The type of event to listen for",
564 "desc" : "The method the event invokes",
570 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
576 "desc" : "(optional)",
585 "desc" : "Removes a listener (shorthand for removeListener)",
586 "sig" : "(eventName, handler, scope)",
588 "memberOf" : "Roo.util.Observable",
590 "isConstructor" : false,
600 "name" : "eventName",
602 "desc" : "The type of event to listen for",
608 "desc" : "The handler to remove",
614 "desc" : "(optional) The scope (this object) for the handler",
621 "name" : "addEvents",
623 "desc" : "Used to define events on this Observable",
626 "memberOf" : "Roo.util.Observable",
628 "isConstructor" : false,
640 "desc" : "The object with the events defined",
647 "name" : "releaseCapture",
649 "desc" : "Removes <b>all</b> added captures from the Observable.",
652 "memberOf" : "Roo.util.Observable",
654 "isConstructor" : false,
665 "type" : "Observable",
666 "desc" : "The Observable to release",
673 "name" : "removeListener",
675 "desc" : "Removes a listener",
676 "sig" : "(eventName, handler, scope)",
678 "memberOf" : "Roo.util.Observable",
680 "isConstructor" : false,
690 "name" : "eventName",
692 "desc" : "The type of event to listen for",
698 "desc" : "The handler to remove",
704 "desc" : "(optional) The scope (this object) for the handler",
711 "name" : "fireEvent",
713 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
714 "sig" : "(eventName, args)",
716 "memberOf" : "Roo.util.Observable",
718 "isConstructor" : false,
728 "name" : "eventName",
735 "type" : "Object...",
736 "desc" : "Variable number of parameters are passed to handlers",
744 "desc" : "returns false if any of the handlers return false otherwise it returns true"
749 "name" : "hasListener",
751 "desc" : "Checks to see if this object has any listeners for a specified event",
752 "sig" : "(eventName)",
754 "memberOf" : "Roo.util.Observable",
756 "isConstructor" : false,
766 "name" : "eventName",
768 "desc" : "The name of the event to check for",
776 "desc" : "True if the event is being listened for, else false"
783 "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.",
784 "sig" : "(o, fn, scope)",
786 "memberOf" : "Roo.util.Observable",
788 "isConstructor" : false,
799 "type" : "Observable",
800 "desc" : "The Observable to capture",
806 "desc" : "The function to call",
812 "desc" : "(optional) The scope (this object) for the fn",
819 "name" : "addListener",
821 "desc" : "Appends an event handler to this component",
822 "sig" : "(eventName, handler, scope, options)",
824 "memberOf" : "Roo.util.Observable",
826 "isConstructor" : false,
836 "name" : "eventName",
838 "desc" : "The type of event to listen for",
844 "desc" : "The method the event invokes",
850 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
856 "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>",
865 "name" : "arrowclick",
867 "desc" : "Fires when this button's arrow is clicked",
868 "sig" : "function (_self, e)\n{\n\n}",
869 "memberOf" : "Roo.SplitButton",
877 "type" : "SplitButton",
883 "type" : "EventObject",
884 "desc" : "The click event",
893 "desc" : "Fires when the button is rendered",
894 "sig" : "function (_self)\n{\n\n}",
895 "memberOf" : "Roo.Button",
913 "desc" : "Fires when this button is clicked",
914 "sig" : "function (_self, e)\n{\n\n}",
915 "memberOf" : "Roo.Button",
929 "type" : "EventObject",
930 "desc" : "The click event",
937 "name" : "mouseover",
939 "desc" : "Fires when the mouse hovers over the button",
940 "sig" : "function (_self, e)\n{\n\n}",
941 "memberOf" : "Roo.Button",
956 "desc" : "The event object",
965 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
966 "sig" : "function (_self, pressed)\n{\n\n}",
967 "memberOf" : "Roo.Button",
991 "desc" : "Fires when the mouse exits the button",
992 "sig" : "function (_self, e)\n{\n\n}",
993 "memberOf" : "Roo.Button",
1003 "isOptional" : false
1008 "desc" : "The event object",
1009 "isOptional" : false