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"
42 "type" : "String/Object",
43 "desc" : "The tooltip for the button - can be a string or QuickTips config object",
44 "memberOf" : "Roo.Button"
49 "desc" : "The button text",
50 "memberOf" : "Roo.Button"
54 "type" : "String/HTMLElement/Element",
55 "desc" : "The element to append the button to",
56 "memberOf" : "Roo.Button"
61 "desc" : "True to start hidden (defaults to false)",
62 "memberOf" : "Roo.Button"
65 "name" : "toggleGroup",
67 "desc" : "The group this toggle button is a member of (only 1 per group can be pressed, only\n applies if enableToggle = true)",
68 "memberOf" : "Roo.Button"
71 "name" : "handleMouseEvents",
73 "desc" : "False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)",
74 "memberOf" : "Roo.Button"
78 "type" : "Roo.menu.Menu",
79 "desc" : "Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).",
80 "memberOf" : "Roo.Button"
83 "name" : "enableToggle",
85 "desc" : "True to enable pressed/not pressed toggling (defaults to false)",
86 "memberOf" : "Roo.Button"
89 "name" : "arrowHandler",
91 "desc" : "A function called when the arrow button is clicked (can be used instead of click event)",
92 "memberOf" : "Roo.SplitButton"
97 "desc" : "A function called when the button is clicked (can be used instead of click event)",
98 "memberOf" : "Roo.Button"
103 "desc" : "The scope of the handler",
104 "memberOf" : "Roo.Button"
109 "desc" : "The minimum width for this button (used to give a set of buttons a common width)",
110 "memberOf" : "Roo.Button"
115 "desc" : "True to start disabled (defaults to false)",
116 "memberOf" : "Roo.Button"
121 "desc" : "True to start pressed (only if enableToggle = true)",
122 "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"
133 "desc" : "A CSS class to apply to the button's main element.",
134 "memberOf" : "Roo.Button"
139 "desc" : "The DOM tabIndex for this button (defaults to undefined)",
140 "memberOf" : "Roo.Button"
145 "desc" : "A css class which sets a background image to be used as the icon for this button (defaults to undefined).",
146 "memberOf" : "Roo.Button"
149 "name" : "menuAlign",
151 "desc" : "The position to align the menu to (see {@link Roo.Element#alignTo} for more details, defaults to 'tl-bl?').",
152 "memberOf" : "Roo.Button"
157 "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\")",
158 "memberOf" : "Roo.Button"
161 "name" : "tooltipType",
163 "desc" : "The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute.",
164 "memberOf" : "Roo.Button"
167 "name" : "arrowTooltip",
169 "desc" : "The title attribute of the arrow",
170 "memberOf" : "Roo.SplitButton"
173 "name" : "clickEvent",
175 "desc" : "The type of event to map to the button's event handler (defaults to 'click')",
176 "memberOf" : "Roo.Button"
180 "type" : "Boolean/Object",
181 "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).",
182 "memberOf" : "Roo.Button"
187 "desc" : "The button's type, corresponding to the DOM input element type attribute. Either \"submit,\" \"reset\" or \"button\" (default).",
188 "memberOf" : "Roo.Button"
195 "desc" : "Removes and destroys this button",
196 "sig" : "()\n{\n\n}",
200 "isConstructor" : false,
214 "desc" : "Hides this button",
215 "sig" : "()\n{\n\n}",
219 "isConstructor" : false,
233 "desc" : "Shows this button",
234 "sig" : "()\n{\n\n}",
238 "isConstructor" : false,
250 "name" : "setArrowHandler",
252 "desc" : "Sets this button's arrow click handler",
253 "sig" : "(handler, scope)",
255 "memberOf" : "Roo.SplitButton",
257 "isConstructor" : false,
269 "desc" : "The function to call when the arrow is clicked",
275 "desc" : "(optional) Scope for the function passed above",
284 "desc" : "Focus the button",
285 "sig" : "()\n{\n\n}",
287 "memberOf" : "Roo.SplitButton",
289 "isConstructor" : false,
301 "name" : "setHandler",
303 "desc" : "Sets this button's click handler",
304 "sig" : "(handler, scope)",
306 "memberOf" : "Roo.SplitButton",
308 "isConstructor" : false,
320 "desc" : "The function to call when the button is clicked",
326 "desc" : "(optional) Scope for the function passed above",
335 "desc" : "Disable this button",
336 "sig" : "()\n{\n\n}",
338 "memberOf" : "Roo.Button",
340 "isConstructor" : false,
354 "desc" : "Enable this button",
355 "sig" : "()\n{\n\n}",
357 "memberOf" : "Roo.Button",
359 "isConstructor" : false,
373 "desc" : "Returns the button's underlying element",
374 "sig" : "()\n{\n\n}",
376 "memberOf" : "Roo.Button",
378 "isConstructor" : false,
390 "type" : "Roo.Element",
391 "desc" : "The element"
396 "name" : "setDisabled",
398 "desc" : "Convenience function for boolean enable/disable",
401 "memberOf" : "Roo.Button",
403 "isConstructor" : false,
415 "desc" : "True to enable, false to disable",
422 "name" : "setVisible",
424 "desc" : "Convenience function for boolean show/hide",
427 "memberOf" : "Roo.Button",
429 "isConstructor" : false,
441 "desc" : "True to show, false to hide",
450 "desc" : "Gets the text for this button",
451 "sig" : "()\n{\n\n}",
453 "memberOf" : "Roo.Button",
455 "isConstructor" : false,
468 "desc" : "The button text"
475 "desc" : "Sets this button's text",
478 "memberOf" : "Roo.Button",
480 "isConstructor" : false,
492 "desc" : "The button text",
501 "desc" : "If a state it passed, it becomes the pressed state otherwise the current state is toggled.",
504 "memberOf" : "Roo.Button",
506 "isConstructor" : false,
518 "desc" : "(optional) Force a particular state",
525 "name" : "purgeListeners",
527 "desc" : "Removes all listeners for this object",
528 "sig" : "()\n{\n\n}",
530 "memberOf" : "Roo.util.Observable",
532 "isConstructor" : false,
546 "desc" : "Appends an event handler to this element (shorthand for addListener)",
547 "sig" : "(eventName, handler, scope, options)",
549 "memberOf" : "Roo.util.Observable",
551 "isConstructor" : false,
561 "name" : "eventName",
563 "desc" : "The type of event to listen for",
569 "desc" : "The method the event invokes",
575 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
581 "desc" : "(optional)",
590 "desc" : "Removes a listener (shorthand for removeListener)",
591 "sig" : "(eventName, handler, scope)",
593 "memberOf" : "Roo.util.Observable",
595 "isConstructor" : false,
605 "name" : "eventName",
607 "desc" : "The type of event to listen for",
613 "desc" : "The handler to remove",
619 "desc" : "(optional) The scope (this object) for the handler",
626 "name" : "addEvents",
628 "desc" : "Used to define events on this Observable",
631 "memberOf" : "Roo.util.Observable",
633 "isConstructor" : false,
645 "desc" : "The object with the events defined",
652 "name" : "releaseCapture",
654 "desc" : "Removes <b>all</b> added captures from the Observable.",
657 "memberOf" : "Roo.util.Observable",
659 "isConstructor" : false,
670 "type" : "Observable",
671 "desc" : "The Observable to release",
678 "name" : "removeListener",
680 "desc" : "Removes a listener",
681 "sig" : "(eventName, handler, scope)",
683 "memberOf" : "Roo.util.Observable",
685 "isConstructor" : false,
695 "name" : "eventName",
697 "desc" : "The type of event to listen for",
703 "desc" : "The handler to remove",
709 "desc" : "(optional) The scope (this object) for the handler",
716 "name" : "fireEvent",
718 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
719 "sig" : "(eventName, args)",
721 "memberOf" : "Roo.util.Observable",
723 "isConstructor" : false,
733 "name" : "eventName",
740 "type" : "Object...",
741 "desc" : "Variable number of parameters are passed to handlers",
749 "desc" : "returns false if any of the handlers return false otherwise it returns true"
754 "name" : "hasListener",
756 "desc" : "Checks to see if this object has any listeners for a specified event",
757 "sig" : "(eventName)",
759 "memberOf" : "Roo.util.Observable",
761 "isConstructor" : false,
771 "name" : "eventName",
773 "desc" : "The name of the event to check for",
781 "desc" : "True if the event is being listened for, else false"
788 "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.",
789 "sig" : "(o, fn, scope)",
791 "memberOf" : "Roo.util.Observable",
793 "isConstructor" : false,
804 "type" : "Observable",
805 "desc" : "The Observable to capture",
811 "desc" : "The function to call",
817 "desc" : "(optional) The scope (this object) for the fn",
824 "name" : "addListener",
826 "desc" : "Appends an event handler to this component",
827 "sig" : "(eventName, handler, scope, options)",
829 "memberOf" : "Roo.util.Observable",
831 "isConstructor" : false,
841 "name" : "eventName",
843 "desc" : "The type of event to listen for",
849 "desc" : "The method the event invokes",
855 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
861 "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>",
870 "name" : "arrowclick",
872 "desc" : "Fires when this button's arrow is clicked",
873 "sig" : "function (_self, e)\n{\n\n}",
874 "memberOf" : "Roo.SplitButton",
882 "type" : "SplitButton",
888 "type" : "EventObject",
889 "desc" : "The click event",
898 "desc" : "Fires when the button is rendered",
899 "sig" : "function (_self)\n{\n\n}",
900 "memberOf" : "Roo.Button",
918 "desc" : "Fires when this button is clicked",
919 "sig" : "function (_self, e)\n{\n\n}",
920 "memberOf" : "Roo.Button",
934 "type" : "EventObject",
935 "desc" : "The click event",
942 "name" : "mouseover",
944 "desc" : "Fires when the mouse hovers over the button",
945 "sig" : "function (_self, e)\n{\n\n}",
946 "memberOf" : "Roo.Button",
961 "desc" : "The event object",
970 "desc" : "Fires when the \"pressed\" state of this button changes (only if enableToggle = true)",
971 "sig" : "function (_self, pressed)\n{\n\n}",
972 "memberOf" : "Roo.Button",
996 "desc" : "Fires when the mouse exits 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