2 "name" : "Roo.TabPanel",
9 "desc" : "A lightweight tab container.\n<br><br>\nUsage:\n<pre><code>\n// basic tabs 1, built from existing content\nvar tabs = new Roo.TabPanel(\"tabs1\");\ntabs.addTab(\"script\", \"View Script\");\ntabs.addTab(\"markup\", \"View Markup\");\ntabs.activate(\"script\");\n\n// more advanced tabs, built from javascript\nvar jtabs = new Roo.TabPanel(\"jtabs\");\njtabs.addTab(\"jtabs-1\", \"Normal Tab\", \"My content was added during construction.\");\n\n// set up the UpdateManager\nvar tab2 = jtabs.addTab(\"jtabs-2\", \"Ajax Tab 1\");\nvar updater = tab2.getUpdateManager();\nupdater.setDefaultUrl(\"ajax1.htm\");\ntab2.on('activate', updater.refresh, updater, true);\n\n// Use setUrl for Ajax loading\nvar tab3 = jtabs.addTab(\"jtabs-3\", \"Ajax Tab 2\");\ntab3.setUrl(\"ajax2.htm\", null, true);\n\n// Disabled tab\nvar tab4 = jtabs.addTab(\"tabs1-5\", \"Disabled Tab\", \"Can't see me cause I'm disabled\");\ntab4.disable();\n\njtabs.activate(\"jtabs-1\");\n</code></pre>",
10 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "TabPanel",
23 "type" : "String/HTMLElement/Roo.Element",
24 "desc" : "The id, DOM element or Roo.Element container where this TabPanel is to be rendered.",
29 "type" : "Object/Boolean",
30 "desc" : "Config object to set any properties for this TabPanel, or true to render the tabs on the bottom.",
41 "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>",
42 "memberOf" : "Roo.util.Observable",
49 "name" : "getActiveTab",
51 "desc" : "Gets the active {@link Roo.TabPanelItem}.",
56 "isConstructor" : false,
68 "type" : "Roo.TabPanelItem",
69 "desc" : "The active TabPanelItem or null if none are active."
74 "name" : "beginUpdate",
76 "desc" : "Disables tab resizing while tabs are being added (if {@link #resizeTabs} is false this does nothing)",
81 "isConstructor" : false,
95 "desc" : "\"Unhides\" the {@link Roo.TabPanelItem} with the specified id/index.",
100 "isConstructor" : false,
111 "type" : "String/Number",
112 "desc" : "The id or index of the TabPanelItem to unhide.",
119 "name" : "enableTab",
121 "desc" : "Enables a {@link Roo.TabPanelItem} that is disabled.",
126 "isConstructor" : false,
137 "type" : "String/Number",
138 "desc" : "The id or index of the TabPanelItem to enable.",
145 "name" : "setTabWidth",
147 "desc" : "Resizes all the tabs to the passed width",
152 "isConstructor" : false,
164 "desc" : "new width",
171 "name" : "endUpdate",
173 "desc" : "Stops an update and resizes the tabs (if {@link #resizeTabs} is false this does nothing)",
174 "sig" : "()\n{\n\n}",
178 "isConstructor" : false,
192 "desc" : "Creates a new {@link Roo.TabPanelItem} by looking for an existing element with the provided id -- if it's not found it creates one.",
193 "sig" : "(id, text, content, closable)",
197 "isConstructor" : false,
209 "desc" : "The id of the div to use <b>or create</b>",
215 "desc" : "The text for the tab",
221 "desc" : "(optional) Content to put in the TabPanelItem body",
227 "desc" : "(optional) True to create a close icon on the tab",
234 "type" : "Roo.TabPanelItem",
235 "desc" : "The created TabPanelItem"
240 "name" : "disableTab",
242 "desc" : "Disables a {@link Roo.TabPanelItem}. It cannot be the active tab, if it is this call is ignored.",
247 "isConstructor" : false,
258 "type" : "String/Number",
259 "desc" : "The id or index of the TabPanelItem to disable.",
268 "desc" : "Destroys this TabPanel",
269 "sig" : "(removeEl)",
273 "isConstructor" : false,
285 "desc" : "(optional) True to remove the element from the DOM as well (defaults to undefined)",
294 "desc" : "Returns the {@link Roo.TabPanelItem} with the specified id/index",
299 "isConstructor" : false,
310 "type" : "String/Number",
311 "desc" : "The id or index of the TabPanelItem to fetch.",
318 "type" : "Roo.TabPanelItem",
326 "desc" : "Returns the number of tabs in this TabPanel.",
327 "sig" : "()\n{\n\n}",
331 "isConstructor" : false,
349 "name" : "autoSizeTabs",
351 "desc" : "Manual call to resize the tabs (if {@link #resizeTabs} is false this does nothing)",
352 "sig" : "()\n{\n\n}",
356 "isConstructor" : false,
368 "name" : "removeTab",
370 "desc" : "Removes a {@link Roo.TabPanelItem}.",
375 "isConstructor" : false,
386 "type" : "String/Number",
387 "desc" : "The id or index of the TabPanelItem to remove.",
396 "desc" : "Activates a {@link Roo.TabPanelItem}. The currently active one will be deactivated.",
401 "isConstructor" : false,
412 "type" : "String/Number",
413 "desc" : "The id or index of the TabPanelItem to activate.",
420 "type" : "Roo.TabPanelItem",
421 "desc" : "The TabPanelItem."
426 "name" : "syncHeight",
428 "desc" : "Updates the tab body element to fit the height of the container element\nfor overflow scrolling",
429 "sig" : "(targetHeight)",
433 "isConstructor" : false,
443 "name" : "targetHeight",
445 "desc" : "(optional) Override the starting height from the elements height",
452 "name" : "addTabItem",
454 "desc" : "Adds an existing {@link Roo.TabPanelItem}.",
459 "isConstructor" : false,
470 "type" : "Roo.TabPanelItem",
471 "desc" : "The TabPanelItem to add",
480 "desc" : "Hides the {@link Roo.TabPanelItem} with the specified id/index",
485 "isConstructor" : false,
496 "type" : "String/Number",
497 "desc" : "The id or index of the TabPanelItem to hide.",
504 "name" : "purgeListeners",
506 "desc" : "Removes all listeners for this object",
507 "sig" : "()\n{\n\n}",
509 "memberOf" : "Roo.util.Observable",
511 "isConstructor" : false,
525 "desc" : "Appends an event handler to this element (shorthand for addListener)",
526 "sig" : "(eventName, handler, scope, options)",
528 "memberOf" : "Roo.util.Observable",
530 "isConstructor" : false,
540 "name" : "eventName",
542 "desc" : "The type of event to listen for",
548 "desc" : "The method the event invokes",
554 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
560 "desc" : "(optional)",
569 "desc" : "Removes a listener (shorthand for removeListener)",
570 "sig" : "(eventName, handler, scope)",
572 "memberOf" : "Roo.util.Observable",
574 "isConstructor" : false,
584 "name" : "eventName",
586 "desc" : "The type of event to listen for",
592 "desc" : "The handler to remove",
598 "desc" : "(optional) The scope (this object) for the handler",
605 "name" : "addEvents",
607 "desc" : "Used to define events on this Observable",
610 "memberOf" : "Roo.util.Observable",
612 "isConstructor" : false,
624 "desc" : "The object with the events defined",
631 "name" : "releaseCapture",
633 "desc" : "Removes <b>all</b> added captures from the Observable.",
636 "memberOf" : "Roo.util.Observable",
638 "isConstructor" : false,
649 "type" : "Observable",
650 "desc" : "The Observable to release",
657 "name" : "removeListener",
659 "desc" : "Removes a listener",
660 "sig" : "(eventName, handler, scope)",
662 "memberOf" : "Roo.util.Observable",
664 "isConstructor" : false,
674 "name" : "eventName",
676 "desc" : "The type of event to listen for",
682 "desc" : "The handler to remove",
688 "desc" : "(optional) The scope (this object) for the handler",
695 "name" : "fireEvent",
697 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
698 "sig" : "(eventName, args)",
700 "memberOf" : "Roo.util.Observable",
702 "isConstructor" : false,
712 "name" : "eventName",
719 "type" : "Object...",
720 "desc" : "Variable number of parameters are passed to handlers",
728 "desc" : "returns false if any of the handlers return false otherwise it returns true"
733 "name" : "hasListener",
735 "desc" : "Checks to see if this object has any listeners for a specified event",
736 "sig" : "(eventName)",
738 "memberOf" : "Roo.util.Observable",
740 "isConstructor" : false,
750 "name" : "eventName",
752 "desc" : "The name of the event to check for",
760 "desc" : "True if the event is being listened for, else false"
767 "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.",
768 "sig" : "(o, fn, scope)",
770 "memberOf" : "Roo.util.Observable",
772 "isConstructor" : false,
783 "type" : "Observable",
784 "desc" : "The Observable to capture",
790 "desc" : "The function to call",
796 "desc" : "(optional) The scope (this object) for the fn",
803 "name" : "addListener",
805 "desc" : "Appends an event handler to this component",
806 "sig" : "(eventName, handler, scope, options)",
808 "memberOf" : "Roo.util.Observable",
810 "isConstructor" : false,
820 "name" : "eventName",
822 "desc" : "The type of event to listen for",
828 "desc" : "The method the event invokes",
834 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
840 "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>",
849 "name" : "beforetabchange",
851 "desc" : "Fires before the active tab changes, set cancel to true on the \"e\" parameter to cancel the change",
852 "sig" : "function (_self, e, tab)\n{\n\n}",
861 "type" : "Roo.TabPanel",
868 "desc" : "Set cancel to true on this object to cancel the tab change",
873 "type" : "Roo.TabPanelItem",
874 "desc" : "The tab being changed to",
881 "name" : "tabchange",
883 "desc" : "Fires when the active tab changes",
884 "sig" : "function (_self, activePanel)\n{\n\n}",
893 "type" : "Roo.TabPanel",
898 "name" : "activePanel",
899 "type" : "Roo.TabPanelItem",
900 "desc" : "The new active tab",