2 "name" : "Roo.TabPanel",
6 "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 "memberOf" : "TabPanel",
18 "type" : "String/HTMLElement/Roo.Element",
19 "desc" : "The id, DOM element or Roo.Element container where this TabPanel is to be rendered.",
24 "type" : "Object/Boolean",
25 "desc" : "Config object to set any properties for this TabPanel, or true to render the tabs on the bottom.",
36 "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>",
37 "memberOf" : "Roo.util.Observable"
42 "name" : "getActiveTab",
44 "desc" : "Gets the active {@link Roo.TabPanelItem}.",
49 "isConstructor" : false,
61 "type" : "Roo.TabPanelItem",
62 "desc" : "The active TabPanelItem or null if none are active."
67 "name" : "beginUpdate",
69 "desc" : "Disables tab resizing while tabs are being added (if {@link #resizeTabs} is false this does nothing)",
74 "isConstructor" : false,
88 "desc" : "\"Unhides\" the {@link Roo.TabPanelItem} with the specified id/index.",
93 "isConstructor" : false,
104 "type" : "String/Number",
105 "desc" : "The id or index of the TabPanelItem to unhide.",
112 "name" : "enableTab",
114 "desc" : "Enables a {@link Roo.TabPanelItem} that is disabled.",
119 "isConstructor" : false,
130 "type" : "String/Number",
131 "desc" : "The id or index of the TabPanelItem to enable.",
138 "name" : "setTabWidth",
140 "desc" : "Resizes all the tabs to the passed width",
145 "isConstructor" : false,
157 "desc" : "new width",
164 "name" : "endUpdate",
166 "desc" : "Stops an update and resizes the tabs (if {@link #resizeTabs} is false this does nothing)",
167 "sig" : "()\n{\n\n}",
171 "isConstructor" : false,
185 "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.",
186 "sig" : "(id, text, content, closable)",
190 "isConstructor" : false,
202 "desc" : "The id of the div to use <b>or create</b>",
208 "desc" : "The text for the tab",
214 "desc" : "(optional) Content to put in the TabPanelItem body",
220 "desc" : "(optional) True to create a close icon on the tab",
227 "type" : "Roo.TabPanelItem",
228 "desc" : "The created TabPanelItem"
233 "name" : "disableTab",
235 "desc" : "Disables a {@link Roo.TabPanelItem}. It cannot be the active tab, if it is this call is ignored.",
240 "isConstructor" : false,
251 "type" : "String/Number",
252 "desc" : "The id or index of the TabPanelItem to disable.",
261 "desc" : "Destroys this TabPanel",
262 "sig" : "(removeEl)",
266 "isConstructor" : false,
278 "desc" : "(optional) True to remove the element from the DOM as well (defaults to undefined)",
287 "desc" : "Returns the {@link Roo.TabPanelItem} with the specified id/index",
292 "isConstructor" : false,
303 "type" : "String/Number",
304 "desc" : "The id or index of the TabPanelItem to fetch.",
311 "type" : "Roo.TabPanelItem",
319 "desc" : "Returns the number of tabs in this TabPanel.",
320 "sig" : "()\n{\n\n}",
324 "isConstructor" : false,
342 "name" : "autoSizeTabs",
344 "desc" : "Manual call to resize the tabs (if {@link #resizeTabs} is false this does nothing)",
345 "sig" : "()\n{\n\n}",
349 "isConstructor" : false,
361 "name" : "removeTab",
363 "desc" : "Removes a {@link Roo.TabPanelItem}.",
368 "isConstructor" : false,
379 "type" : "String/Number",
380 "desc" : "The id or index of the TabPanelItem to remove.",
389 "desc" : "Activates a {@link Roo.TabPanelItem}. The currently active one will be deactivated.",
394 "isConstructor" : false,
405 "type" : "String/Number",
406 "desc" : "The id or index of the TabPanelItem to activate.",
413 "type" : "Roo.TabPanelItem",
414 "desc" : "The TabPanelItem."
419 "name" : "syncHeight",
421 "desc" : "Updates the tab body element to fit the height of the container element\nfor overflow scrolling",
422 "sig" : "(targetHeight)",
426 "isConstructor" : false,
436 "name" : "targetHeight",
438 "desc" : "(optional) Override the starting height from the elements height",
445 "name" : "addTabItem",
447 "desc" : "Adds an existing {@link Roo.TabPanelItem}.",
452 "isConstructor" : false,
463 "type" : "Roo.TabPanelItem",
464 "desc" : "The TabPanelItem to add",
473 "desc" : "Hides the {@link Roo.TabPanelItem} with the specified id/index",
478 "isConstructor" : false,
489 "type" : "String/Number",
490 "desc" : "The id or index of the TabPanelItem to hide.",
497 "name" : "purgeListeners",
499 "desc" : "Removes all listeners for this object",
500 "sig" : "()\n{\n\n}",
502 "memberOf" : "Roo.util.Observable",
504 "isConstructor" : false,
518 "desc" : "Appends an event handler to this element (shorthand for addListener)",
519 "sig" : "(eventName, handler, scope, options)",
521 "memberOf" : "Roo.util.Observable",
523 "isConstructor" : false,
533 "name" : "eventName",
535 "desc" : "The type of event to listen for",
541 "desc" : "The method the event invokes",
547 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
553 "desc" : "(optional)",
562 "desc" : "Removes a listener (shorthand for removeListener)",
563 "sig" : "(eventName, handler, scope)",
565 "memberOf" : "Roo.util.Observable",
567 "isConstructor" : false,
577 "name" : "eventName",
579 "desc" : "The type of event to listen for",
585 "desc" : "The handler to remove",
591 "desc" : "(optional) The scope (this object) for the handler",
598 "name" : "addEvents",
600 "desc" : "Used to define events on this Observable",
603 "memberOf" : "Roo.util.Observable",
605 "isConstructor" : false,
617 "desc" : "The object with the events defined",
624 "name" : "releaseCapture",
626 "desc" : "Removes <b>all</b> added captures from the Observable.",
629 "memberOf" : "Roo.util.Observable",
631 "isConstructor" : false,
642 "type" : "Observable",
643 "desc" : "The Observable to release",
650 "name" : "removeListener",
652 "desc" : "Removes a listener",
653 "sig" : "(eventName, handler, scope)",
655 "memberOf" : "Roo.util.Observable",
657 "isConstructor" : false,
667 "name" : "eventName",
669 "desc" : "The type of event to listen for",
675 "desc" : "The handler to remove",
681 "desc" : "(optional) The scope (this object) for the handler",
688 "name" : "fireEvent",
690 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
691 "sig" : "(eventName, args)",
693 "memberOf" : "Roo.util.Observable",
695 "isConstructor" : false,
705 "name" : "eventName",
712 "type" : "Object...",
713 "desc" : "Variable number of parameters are passed to handlers",
721 "desc" : "returns false if any of the handlers return false otherwise it returns true"
726 "name" : "hasListener",
728 "desc" : "Checks to see if this object has any listeners for a specified event",
729 "sig" : "(eventName)",
731 "memberOf" : "Roo.util.Observable",
733 "isConstructor" : false,
743 "name" : "eventName",
745 "desc" : "The name of the event to check for",
753 "desc" : "True if the event is being listened for, else false"
760 "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.",
761 "sig" : "(o, fn, scope)",
763 "memberOf" : "Roo.util.Observable",
765 "isConstructor" : false,
776 "type" : "Observable",
777 "desc" : "The Observable to capture",
783 "desc" : "The function to call",
789 "desc" : "(optional) The scope (this object) for the fn",
796 "name" : "addListener",
798 "desc" : "Appends an event handler to this component",
799 "sig" : "(eventName, handler, scope, options)",
801 "memberOf" : "Roo.util.Observable",
803 "isConstructor" : false,
813 "name" : "eventName",
815 "desc" : "The type of event to listen for",
821 "desc" : "The method the event invokes",
827 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
833 "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>",
842 "name" : "beforetabchange",
844 "desc" : "Fires before the active tab changes, set cancel to true on the \"e\" parameter to cancel the change",
845 "sig" : "function (_self, e, tab)\n{\n\n}",
854 "type" : "Roo.TabPanel",
861 "desc" : "Set cancel to true on this object to cancel the tab change",
866 "type" : "Roo.TabPanelItem",
867 "desc" : "The tab being changed to",
874 "name" : "tabchange",
876 "desc" : "Fires when the active tab changes",
877 "sig" : "function (_self, activePanel)\n{\n\n}",
886 "type" : "Roo.TabPanel",
891 "name" : "activePanel",
892 "type" : "Roo.TabPanelItem",
893 "desc" : "The new active tab",