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>",
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.",
35 "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>",
36 "memberOf" : "Roo.util.Observable",
43 "name" : "setTabWidth",
44 "desc" : "Resizes all the tabs to the passed width",
46 "isConstructor" : false,
48 "memberOf" : "Roo.bootstrap.panel.Tabs",
66 "desc" : "Stops an update and resizes the tabs (if {@link #resizeTabs} is false this does nothing)",
68 "isConstructor" : false,
70 "memberOf" : "Roo.bootstrap.panel.Tabs",
81 "name" : "disableTab",
82 "desc" : "Disables a {@link Roo.TabPanelItem}. It cannot be the active tab, if it is this call is ignored.",
84 "isConstructor" : false,
86 "memberOf" : "Roo.bootstrap.panel.Tabs",
94 "type" : "String/Number",
95 "desc" : "The id or index of the TabPanelItem to disable.",
104 "desc" : "Returns the {@link Roo.TabPanelItem} with the specified id/index",
106 "isConstructor" : false,
108 "memberOf" : "Roo.bootstrap.panel.Tabs",
116 "type" : "String/Number",
117 "desc" : "The id or index of the TabPanelItem to fetch.",
124 "type" : "Roo.TabPanelItem",
130 "name" : "unhideTab",
131 "desc" : "\"Unhides\" the {@link Roo.TabPanelItem} with the specified id/index.",
133 "isConstructor" : false,
135 "memberOf" : "Roo.bootstrap.panel.Tabs",
143 "type" : "String/Number",
144 "desc" : "The id or index of the TabPanelItem to unhide.",
152 "name" : "beginUpdate",
153 "desc" : "Disables tab resizing while tabs are being added (if {@link #resizeTabs} is false this does nothing)",
155 "isConstructor" : false,
157 "memberOf" : "Roo.bootstrap.panel.Tabs",
168 "name" : "enableTab",
169 "desc" : "Enables a {@link Roo.TabPanelItem} that is disabled.",
171 "isConstructor" : false,
173 "memberOf" : "Roo.bootstrap.panel.Tabs",
181 "type" : "String/Number",
182 "desc" : "The id or index of the TabPanelItem to enable.",
191 "desc" : "Returns the number of tabs in this TabPanel.",
193 "isConstructor" : false,
195 "memberOf" : "Roo.bootstrap.panel.Tabs",
212 "desc" : "Destroys this TabPanel",
214 "isConstructor" : false,
216 "memberOf" : "Roo.bootstrap.panel.Tabs",
225 "desc" : "(optional) True to remove the element from the DOM as well (defaults to undefined)",
233 "name" : "syncHeight",
234 "desc" : "Updates the tab body element to fit the height of the container element\nfor overflow scrolling",
236 "isConstructor" : false,
238 "memberOf" : "Roo.bootstrap.panel.Tabs",
245 "name" : "targetHeight",
247 "desc" : "(optional) Override the starting height from the elements height",
256 "desc" : "Activates a {@link Roo.TabPanelItem}. The currently active one will be deactivated.",
258 "isConstructor" : false,
260 "memberOf" : "Roo.bootstrap.panel.Tabs",
268 "type" : "String/Number",
269 "desc" : "The id or index of the TabPanelItem to activate.",
276 "type" : "Roo.TabPanelItem",
277 "desc" : "The TabPanelItem."
282 "name" : "autoSizeTabs",
283 "desc" : "Manual call to resize the tabs (if {@link #resizeTabs} is false this does nothing)",
285 "isConstructor" : false,
287 "memberOf" : "Roo.bootstrap.panel.Tabs",
298 "name" : "addTabItem",
299 "desc" : "Adds an existing {@link Roo.TabPanelItem}.",
301 "isConstructor" : false,
303 "memberOf" : "Roo.bootstrap.panel.Tabs",
311 "type" : "Roo.TabPanelItem",
312 "desc" : "The TabPanelItem to add",
321 "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.",
323 "isConstructor" : false,
325 "memberOf" : "Roo.bootstrap.panel.Tabs",
334 "desc" : "The id of the div to use <b>or create</b>",
340 "desc" : "The text for the tab",
346 "desc" : "(optional) Content to put in the TabPanelItem body",
352 "desc" : "(optional) True to create a close icon on the tab",
359 "type" : "Roo.TabPanelItem",
360 "desc" : "The created TabPanelItem"
365 "name" : "removeTab",
366 "desc" : "Removes a {@link Roo.TabPanelItem}.",
368 "isConstructor" : false,
370 "memberOf" : "Roo.bootstrap.panel.Tabs",
378 "type" : "String/Number",
379 "desc" : "The id or index of the TabPanelItem to remove.",
388 "desc" : "Hides the {@link Roo.TabPanelItem} with the specified id/index",
390 "isConstructor" : false,
392 "memberOf" : "Roo.bootstrap.panel.Tabs",
400 "type" : "String/Number",
401 "desc" : "The id or index of the TabPanelItem to hide.",
409 "name" : "getActiveTab",
410 "desc" : "Gets the active {@link Roo.TabPanelItem}.",
412 "isConstructor" : false,
414 "memberOf" : "Roo.bootstrap.panel.Tabs",
424 "type" : "Roo.TabPanelItem",
425 "desc" : "The active TabPanelItem or null if none are active."
430 "name" : "purgeListeners",
431 "desc" : "Removes all listeners for this object",
433 "isConstructor" : false,
435 "memberOf" : "Roo.util.Observable",
447 "desc" : "Appends an event handler to this element (shorthand for addListener)",
449 "isConstructor" : false,
451 "memberOf" : "Roo.util.Observable",
458 "name" : "eventName",
460 "desc" : "The type of event to listen for",
466 "desc" : "The method the event invokes",
472 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
478 "desc" : "(optional)",
487 "desc" : "Removes a listener (shorthand for removeListener)",
489 "isConstructor" : false,
491 "memberOf" : "Roo.util.Observable",
498 "name" : "eventName",
500 "desc" : "The type of event to listen for",
506 "desc" : "The handler to remove",
512 "desc" : "(optional) The scope (this object) for the handler",
520 "name" : "addEvents",
521 "desc" : "Used to define events on this Observable",
523 "isConstructor" : false,
525 "memberOf" : "Roo.util.Observable",
534 "desc" : "The object with the events defined",
542 "name" : "releaseCapture",
543 "desc" : "Removes <b>all</b> added captures from the Observable.",
545 "isConstructor" : false,
547 "memberOf" : "Roo.util.Observable",
555 "type" : "Observable",
556 "desc" : "The Observable to release",
564 "name" : "removeListener",
565 "desc" : "Removes a listener",
567 "isConstructor" : false,
569 "memberOf" : "Roo.util.Observable",
576 "name" : "eventName",
578 "desc" : "The type of event to listen for",
584 "desc" : "The handler to remove",
590 "desc" : "(optional) The scope (this object) for the handler",
598 "name" : "fireEvent",
599 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
601 "isConstructor" : false,
603 "memberOf" : "Roo.util.Observable",
610 "name" : "eventName",
617 "type" : "Object...",
618 "desc" : "Variable number of parameters are passed to handlers",
626 "desc" : "returns false if any of the handlers return false otherwise it returns true"
631 "name" : "hasListener",
632 "desc" : "Checks to see if this object has any listeners for a specified event",
634 "isConstructor" : false,
636 "memberOf" : "Roo.util.Observable",
643 "name" : "eventName",
645 "desc" : "The name of the event to check for",
653 "desc" : "True if the event is being listened for, else false"
659 "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.",
661 "isConstructor" : false,
663 "memberOf" : "Roo.util.Observable",
671 "type" : "Observable",
672 "desc" : "The Observable to capture",
678 "desc" : "The function to call",
684 "desc" : "(optional) The scope (this object) for the fn",
692 "name" : "addListener",
693 "desc" : "Appends an event handler to this component",
695 "isConstructor" : false,
697 "memberOf" : "Roo.util.Observable",
704 "name" : "eventName",
706 "desc" : "The type of event to listen for",
712 "desc" : "The method the event invokes",
718 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
724 "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>",
734 "name" : "tabchange",
735 "desc" : "Fires when the active tab changes",
736 "memberOf" : "Roo.bootstrap.panel.Tabs",
744 "type" : "Roo.TabPanel",
749 "name" : "activePanel",
750 "type" : "Roo.TabPanelItem",
751 "desc" : "The new active tab",
759 "name" : "beforetabchange",
760 "desc" : "Fires before the active tab changes, set cancel to true on the \"e\" parameter to cancel the change",
761 "memberOf" : "Roo.bootstrap.panel.Tabs",
769 "type" : "Roo.TabPanel",
776 "desc" : "Set cancel to true on this object to cancel the tab change",
781 "type" : "Roo.TabPanelItem",
782 "desc" : "The tab being changed to",