2 "name" : "Roo.TabPanel",
7 "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>",
11 "memberOf" : "TabPanel",
19 "type" : "String/HTMLElement/Roo.Element",
20 "desc" : "The id, DOM element or Roo.Element container where this TabPanel is to be rendered.",
25 "type" : "Object/Boolean",
26 "desc" : "Config object to set any properties for this TabPanel, or true to render the tabs on the bottom.",
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"
43 "name" : "getActiveTab",
45 "desc" : "Gets the active {@link Roo.TabPanelItem}.",
50 "isConstructor" : false,
62 "type" : "Roo.TabPanelItem",
63 "desc" : "The active TabPanelItem or null if none are active."
68 "name" : "beginUpdate",
70 "desc" : "Disables tab resizing while tabs are being added (if {@link #resizeTabs} is false this does nothing)",
75 "isConstructor" : false,
89 "desc" : "\"Unhides\" the {@link Roo.TabPanelItem} with the specified id/index.",
94 "isConstructor" : false,
105 "type" : "String/Number",
106 "desc" : "The id or index of the TabPanelItem to unhide.",
113 "name" : "enableTab",
115 "desc" : "Enables a {@link Roo.TabPanelItem} that is disabled.",
120 "isConstructor" : false,
131 "type" : "String/Number",
132 "desc" : "The id or index of the TabPanelItem to enable.",
139 "name" : "setTabWidth",
141 "desc" : "Resizes all the tabs to the passed width",
146 "isConstructor" : false,
158 "desc" : "new width",
165 "name" : "endUpdate",
167 "desc" : "Stops an update and resizes the tabs (if {@link #resizeTabs} is false this does nothing)",
168 "sig" : "()\n{\n\n}",
172 "isConstructor" : false,
186 "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.",
187 "sig" : "(id, text, content, closable)",
191 "isConstructor" : false,
203 "desc" : "The id of the div to use <b>or create</b>",
209 "desc" : "The text for the tab",
215 "desc" : "(optional) Content to put in the TabPanelItem body",
221 "desc" : "(optional) True to create a close icon on the tab",
228 "type" : "Roo.TabPanelItem",
229 "desc" : "The created TabPanelItem"
234 "name" : "disableTab",
236 "desc" : "Disables a {@link Roo.TabPanelItem}. It cannot be the active tab, if it is this call is ignored.",
241 "isConstructor" : false,
252 "type" : "String/Number",
253 "desc" : "The id or index of the TabPanelItem to disable.",
262 "desc" : "Destroys this TabPanel",
263 "sig" : "(removeEl)",
267 "isConstructor" : false,
279 "desc" : "(optional) True to remove the element from the DOM as well (defaults to undefined)",
288 "desc" : "Returns the {@link Roo.TabPanelItem} with the specified id/index",
293 "isConstructor" : false,
304 "type" : "String/Number",
305 "desc" : "The id or index of the TabPanelItem to fetch.",
312 "type" : "Roo.TabPanelItem",
320 "desc" : "Returns the number of tabs in this TabPanel.",
321 "sig" : "()\n{\n\n}",
325 "isConstructor" : false,
343 "name" : "autoSizeTabs",
345 "desc" : "Manual call to resize the tabs (if {@link #resizeTabs} is false this does nothing)",
346 "sig" : "()\n{\n\n}",
350 "isConstructor" : false,
362 "name" : "removeTab",
364 "desc" : "Removes a {@link Roo.TabPanelItem}.",
369 "isConstructor" : false,
380 "type" : "String/Number",
381 "desc" : "The id or index of the TabPanelItem to remove.",
390 "desc" : "Activates a {@link Roo.TabPanelItem}. The currently active one will be deactivated.",
395 "isConstructor" : false,
406 "type" : "String/Number",
407 "desc" : "The id or index of the TabPanelItem to activate.",
414 "type" : "Roo.TabPanelItem",
415 "desc" : "The TabPanelItem."
420 "name" : "syncHeight",
422 "desc" : "Updates the tab body element to fit the height of the container element\nfor overflow scrolling",
423 "sig" : "(targetHeight)",
427 "isConstructor" : false,
437 "name" : "targetHeight",
439 "desc" : "(optional) Override the starting height from the elements height",
446 "name" : "addTabItem",
448 "desc" : "Adds an existing {@link Roo.TabPanelItem}.",
453 "isConstructor" : false,
464 "type" : "Roo.TabPanelItem",
465 "desc" : "The TabPanelItem to add",
474 "desc" : "Hides the {@link Roo.TabPanelItem} with the specified id/index",
479 "isConstructor" : false,
490 "type" : "String/Number",
491 "desc" : "The id or index of the TabPanelItem to hide.",
498 "name" : "purgeListeners",
500 "desc" : "Removes all listeners for this object",
501 "sig" : "()\n{\n\n}",
503 "memberOf" : "Roo.util.Observable",
505 "isConstructor" : false,
519 "desc" : "Appends an event handler to this element (shorthand for addListener)",
520 "sig" : "(eventName, handler, scope, options)",
522 "memberOf" : "Roo.util.Observable",
524 "isConstructor" : false,
534 "name" : "eventName",
536 "desc" : "The type of event to listen for",
542 "desc" : "The method the event invokes",
548 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
554 "desc" : "(optional)",
563 "desc" : "Removes a listener (shorthand for removeListener)",
564 "sig" : "(eventName, handler, scope)",
566 "memberOf" : "Roo.util.Observable",
568 "isConstructor" : false,
578 "name" : "eventName",
580 "desc" : "The type of event to listen for",
586 "desc" : "The handler to remove",
592 "desc" : "(optional) The scope (this object) for the handler",
599 "name" : "addEvents",
601 "desc" : "Used to define events on this Observable",
604 "memberOf" : "Roo.util.Observable",
606 "isConstructor" : false,
618 "desc" : "The object with the events defined",
625 "name" : "releaseCapture",
627 "desc" : "Removes <b>all</b> added captures from the Observable.",
630 "memberOf" : "Roo.util.Observable",
632 "isConstructor" : false,
643 "type" : "Observable",
644 "desc" : "The Observable to release",
651 "name" : "removeListener",
653 "desc" : "Removes a listener",
654 "sig" : "(eventName, handler, scope)",
656 "memberOf" : "Roo.util.Observable",
658 "isConstructor" : false,
668 "name" : "eventName",
670 "desc" : "The type of event to listen for",
676 "desc" : "The handler to remove",
682 "desc" : "(optional) The scope (this object) for the handler",
689 "name" : "fireEvent",
691 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
692 "sig" : "(eventName, args)",
694 "memberOf" : "Roo.util.Observable",
696 "isConstructor" : false,
706 "name" : "eventName",
713 "type" : "Object...",
714 "desc" : "Variable number of parameters are passed to handlers",
722 "desc" : "returns false if any of the handlers return false otherwise it returns true"
727 "name" : "hasListener",
729 "desc" : "Checks to see if this object has any listeners for a specified event",
730 "sig" : "(eventName)",
732 "memberOf" : "Roo.util.Observable",
734 "isConstructor" : false,
744 "name" : "eventName",
746 "desc" : "The name of the event to check for",
754 "desc" : "True if the event is being listened for, else false"
761 "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.",
762 "sig" : "(o, fn, scope)",
764 "memberOf" : "Roo.util.Observable",
766 "isConstructor" : false,
777 "type" : "Observable",
778 "desc" : "The Observable to capture",
784 "desc" : "The function to call",
790 "desc" : "(optional) The scope (this object) for the fn",
797 "name" : "addListener",
799 "desc" : "Appends an event handler to this component",
800 "sig" : "(eventName, handler, scope, options)",
802 "memberOf" : "Roo.util.Observable",
804 "isConstructor" : false,
814 "name" : "eventName",
816 "desc" : "The type of event to listen for",
822 "desc" : "The method the event invokes",
828 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
834 "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>",
843 "name" : "beforetabchange",
845 "desc" : "Fires before the active tab changes, set cancel to true on the \"e\" parameter to cancel the change",
846 "sig" : "function (_self, e, tab)\n{\n\n}",
855 "type" : "Roo.TabPanel",
862 "desc" : "Set cancel to true on this object to cancel the tab change",
867 "type" : "Roo.TabPanelItem",
868 "desc" : "The tab being changed to",
875 "name" : "tabchange",
877 "desc" : "Fires when the active tab changes",
878 "sig" : "function (_self, activePanel)\n{\n\n}",
887 "type" : "Roo.TabPanel",
892 "name" : "activePanel",
893 "type" : "Roo.TabPanelItem",
894 "desc" : "The new active tab",