2 "name" : "Roo.bootstrap.panel.Tabs",
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>",
14 "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>",
15 "memberOf" : "Roo.util.Observable",
22 "name" : "setTabWidth",
23 "desc" : "Resizes all the tabs to the passed width",
25 "isConstructor" : false,
27 "memberOf" : "Roo.bootstrap.panel.Tabs",
45 "desc" : "Stops an update and resizes the tabs (if {@link #resizeTabs} is false this does nothing)",
47 "isConstructor" : false,
49 "memberOf" : "Roo.bootstrap.panel.Tabs",
60 "name" : "disableTab",
61 "desc" : "Disables a {@link Roo.TabPanelItem}. It cannot be the active tab, if it is this call is ignored.",
63 "isConstructor" : false,
65 "memberOf" : "Roo.bootstrap.panel.Tabs",
73 "type" : "String/Number",
74 "desc" : "The id or index of the TabPanelItem to disable.",
83 "desc" : "Returns the {@link Roo.TabPanelItem} with the specified id/index",
85 "isConstructor" : false,
87 "memberOf" : "Roo.bootstrap.panel.Tabs",
95 "type" : "String/Number",
96 "desc" : "The id or index of the TabPanelItem to fetch.",
103 "type" : "Roo.TabPanelItem",
109 "name" : "unhideTab",
110 "desc" : "\"Unhides\" the {@link Roo.TabPanelItem} with the specified id/index.",
112 "isConstructor" : false,
114 "memberOf" : "Roo.bootstrap.panel.Tabs",
122 "type" : "String/Number",
123 "desc" : "The id or index of the TabPanelItem to unhide.",
131 "name" : "beginUpdate",
132 "desc" : "Disables tab resizing while tabs are being added (if {@link #resizeTabs} is false this does nothing)",
134 "isConstructor" : false,
136 "memberOf" : "Roo.bootstrap.panel.Tabs",
147 "name" : "enableTab",
148 "desc" : "Enables a {@link Roo.TabPanelItem} that is disabled.",
150 "isConstructor" : false,
152 "memberOf" : "Roo.bootstrap.panel.Tabs",
160 "type" : "String/Number",
161 "desc" : "The id or index of the TabPanelItem to enable.",
170 "desc" : "Returns the number of tabs in this TabPanel.",
172 "isConstructor" : false,
174 "memberOf" : "Roo.bootstrap.panel.Tabs",
191 "desc" : "Destroys this TabPanel",
193 "isConstructor" : false,
195 "memberOf" : "Roo.bootstrap.panel.Tabs",
204 "desc" : "(optional) True to remove the element from the DOM as well (defaults to undefined)",
212 "name" : "syncHeight",
213 "desc" : "Updates the tab body element to fit the height of the container element\nfor overflow scrolling",
215 "isConstructor" : false,
217 "memberOf" : "Roo.bootstrap.panel.Tabs",
224 "name" : "targetHeight",
226 "desc" : "(optional) Override the starting height from the elements height",
235 "desc" : "Activates a {@link Roo.TabPanelItem}. The currently active one will be deactivated.",
237 "isConstructor" : false,
239 "memberOf" : "Roo.bootstrap.panel.Tabs",
247 "type" : "String/Number",
248 "desc" : "The id or index of the TabPanelItem to activate.",
255 "type" : "Roo.TabPanelItem",
256 "desc" : "The TabPanelItem."
261 "name" : "autoSizeTabs",
262 "desc" : "Manual call to resize the tabs (if {@link #resizeTabs} is false this does nothing)",
264 "isConstructor" : false,
266 "memberOf" : "Roo.bootstrap.panel.Tabs",
277 "name" : "addTabItem",
278 "desc" : "Adds an existing {@link Roo.TabPanelItem}.",
280 "isConstructor" : false,
282 "memberOf" : "Roo.bootstrap.panel.Tabs",
290 "type" : "Roo.TabPanelItem",
291 "desc" : "The TabPanelItem to add",
300 "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.",
302 "isConstructor" : false,
304 "memberOf" : "Roo.bootstrap.panel.Tabs",
313 "desc" : "The id of the div to use <b>or create</b>",
319 "desc" : "The text for the tab",
325 "desc" : "(optional) Content to put in the TabPanelItem body",
331 "desc" : "(optional) True to create a close icon on the tab",
338 "type" : "Roo.TabPanelItem",
339 "desc" : "The created TabPanelItem"
344 "name" : "removeTab",
345 "desc" : "Removes a {@link Roo.TabPanelItem}.",
347 "isConstructor" : false,
349 "memberOf" : "Roo.bootstrap.panel.Tabs",
357 "type" : "String/Number",
358 "desc" : "The id or index of the TabPanelItem to remove.",
367 "desc" : "Hides the {@link Roo.TabPanelItem} with the specified id/index",
369 "isConstructor" : false,
371 "memberOf" : "Roo.bootstrap.panel.Tabs",
379 "type" : "String/Number",
380 "desc" : "The id or index of the TabPanelItem to hide.",
388 "name" : "getActiveTab",
389 "desc" : "Gets the active {@link Roo.TabPanelItem}.",
391 "isConstructor" : false,
393 "memberOf" : "Roo.bootstrap.panel.Tabs",
403 "type" : "Roo.TabPanelItem",
404 "desc" : "The active TabPanelItem or null if none are active."
409 "name" : "purgeListeners",
410 "desc" : "Removes all listeners for this object",
412 "isConstructor" : false,
414 "memberOf" : "Roo.util.Observable",
426 "desc" : "Appends an event handler to this element (shorthand for addListener)",
428 "isConstructor" : false,
430 "memberOf" : "Roo.util.Observable",
437 "name" : "eventName",
439 "desc" : "The type of event to listen for",
445 "desc" : "The method the event invokes",
451 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
457 "desc" : "(optional)",
466 "desc" : "Removes a listener (shorthand for removeListener)",
468 "isConstructor" : false,
470 "memberOf" : "Roo.util.Observable",
477 "name" : "eventName",
479 "desc" : "The type of event to listen for",
485 "desc" : "The handler to remove",
491 "desc" : "(optional) The scope (this object) for the handler",
499 "name" : "addEvents",
500 "desc" : "Used to define events on this Observable",
502 "isConstructor" : false,
504 "memberOf" : "Roo.util.Observable",
513 "desc" : "The object with the events defined",
521 "name" : "releaseCapture",
522 "desc" : "Removes <b>all</b> added captures from the Observable.",
524 "isConstructor" : false,
526 "memberOf" : "Roo.util.Observable",
534 "type" : "Observable",
535 "desc" : "The Observable to release",
543 "name" : "removeListener",
544 "desc" : "Removes a listener",
546 "isConstructor" : false,
548 "memberOf" : "Roo.util.Observable",
555 "name" : "eventName",
557 "desc" : "The type of event to listen for",
563 "desc" : "The handler to remove",
569 "desc" : "(optional) The scope (this object) for the handler",
577 "name" : "fireEvent",
578 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
580 "isConstructor" : false,
582 "memberOf" : "Roo.util.Observable",
589 "name" : "eventName",
596 "type" : "Object...",
597 "desc" : "Variable number of parameters are passed to handlers",
605 "desc" : "returns false if any of the handlers return false otherwise it returns true"
610 "name" : "hasListener",
611 "desc" : "Checks to see if this object has any listeners for a specified event",
613 "isConstructor" : false,
615 "memberOf" : "Roo.util.Observable",
622 "name" : "eventName",
624 "desc" : "The name of the event to check for",
632 "desc" : "True if the event is being listened for, else false"
638 "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.",
640 "isConstructor" : false,
642 "memberOf" : "Roo.util.Observable",
650 "type" : "Observable",
651 "desc" : "The Observable to capture",
657 "desc" : "The function to call",
663 "desc" : "(optional) The scope (this object) for the fn",
671 "name" : "addListener",
672 "desc" : "Appends an event handler to this component",
674 "isConstructor" : false,
676 "memberOf" : "Roo.util.Observable",
683 "name" : "eventName",
685 "desc" : "The type of event to listen for",
691 "desc" : "The method the event invokes",
697 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
703 "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>",
713 "name" : "tabchange",
714 "desc" : "Fires when the active tab changes",
723 "type" : "Roo.TabPanel",
728 "name" : "activePanel",
729 "type" : "Roo.TabPanelItem",
730 "desc" : "The new active tab",
738 "name" : "beforetabchange",
739 "desc" : "Fires before the active tab changes, set cancel to true on the \"e\" parameter to cancel the change",
748 "type" : "Roo.TabPanel",
755 "desc" : "Set cancel to true on this object to cancel the tab change",
760 "type" : "Roo.TabPanelItem",
761 "desc" : "The tab being changed to",