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.",
34 "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>",
35 "memberOf" : "Roo.util.Observable",
41 "name" : "setTabWidth",
42 "desc" : "Resizes all the tabs to the passed width",
44 "isConstructor" : false,
46 "memberOf" : "Roo.bootstrap.panel.Tabs",
63 "desc" : "Stops an update and resizes the tabs (if {@link #resizeTabs} is false this does nothing)",
65 "isConstructor" : false,
67 "memberOf" : "Roo.bootstrap.panel.Tabs",
76 "name" : "disableTab",
77 "desc" : "Disables a {@link Roo.TabPanelItem}. It cannot be the active tab, if it is this call is ignored.",
79 "isConstructor" : false,
81 "memberOf" : "Roo.bootstrap.panel.Tabs",
89 "type" : "String/Number",
90 "desc" : "The id or index of the TabPanelItem to disable.",
98 "desc" : "Returns the {@link Roo.TabPanelItem} with the specified id/index",
100 "isConstructor" : false,
102 "memberOf" : "Roo.bootstrap.panel.Tabs",
110 "type" : "String/Number",
111 "desc" : "The id or index of the TabPanelItem to fetch.",
118 "type" : "Roo.TabPanelItem",
124 "name" : "unhideTab",
125 "desc" : "\"Unhides\" the {@link Roo.TabPanelItem} with the specified id/index.",
127 "isConstructor" : false,
129 "memberOf" : "Roo.bootstrap.panel.Tabs",
137 "type" : "String/Number",
138 "desc" : "The id or index of the TabPanelItem to unhide.",
145 "name" : "beginUpdate",
146 "desc" : "Disables tab resizing while tabs are being added (if {@link #resizeTabs} is false this does nothing)",
148 "isConstructor" : false,
150 "memberOf" : "Roo.bootstrap.panel.Tabs",
159 "name" : "enableTab",
160 "desc" : "Enables a {@link Roo.TabPanelItem} that is disabled.",
162 "isConstructor" : false,
164 "memberOf" : "Roo.bootstrap.panel.Tabs",
172 "type" : "String/Number",
173 "desc" : "The id or index of the TabPanelItem to enable.",
181 "desc" : "Returns the number of tabs in this TabPanel.",
183 "isConstructor" : false,
185 "memberOf" : "Roo.bootstrap.panel.Tabs",
201 "desc" : "Destroys this TabPanel",
203 "isConstructor" : false,
205 "memberOf" : "Roo.bootstrap.panel.Tabs",
214 "desc" : "(optional) True to remove the element from the DOM as well (defaults to undefined)",
221 "name" : "syncHeight",
222 "desc" : "Updates the tab body element to fit the height of the container element\nfor overflow scrolling",
224 "isConstructor" : false,
226 "memberOf" : "Roo.bootstrap.panel.Tabs",
233 "name" : "targetHeight",
235 "desc" : "(optional) Override the starting height from the elements height",
243 "desc" : "Activates a {@link Roo.TabPanelItem}. The currently active one will be deactivated.",
245 "isConstructor" : false,
247 "memberOf" : "Roo.bootstrap.panel.Tabs",
255 "type" : "String/Number",
256 "desc" : "The id or index of the TabPanelItem to activate.",
263 "type" : "Roo.TabPanelItem",
264 "desc" : "The TabPanelItem."
269 "name" : "autoSizeTabs",
270 "desc" : "Manual call to resize the tabs (if {@link #resizeTabs} is false this does nothing)",
272 "isConstructor" : false,
274 "memberOf" : "Roo.bootstrap.panel.Tabs",
283 "name" : "addTabItem",
284 "desc" : "Adds an existing {@link Roo.TabPanelItem}.",
286 "isConstructor" : false,
288 "memberOf" : "Roo.bootstrap.panel.Tabs",
296 "type" : "Roo.TabPanelItem",
297 "desc" : "The TabPanelItem to add",
305 "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.",
307 "isConstructor" : false,
309 "memberOf" : "Roo.bootstrap.panel.Tabs",
318 "desc" : "The id of the div to use <b>or create</b>",
324 "desc" : "The text for the tab",
330 "desc" : "(optional) Content to put in the TabPanelItem body",
336 "desc" : "(optional) True to create a close icon on the tab",
343 "type" : "Roo.TabPanelItem",
344 "desc" : "The created TabPanelItem"
349 "name" : "removeTab",
350 "desc" : "Removes a {@link Roo.TabPanelItem}.",
352 "isConstructor" : false,
354 "memberOf" : "Roo.bootstrap.panel.Tabs",
362 "type" : "String/Number",
363 "desc" : "The id or index of the TabPanelItem to remove.",
371 "desc" : "Hides the {@link Roo.TabPanelItem} with the specified id/index",
373 "isConstructor" : false,
375 "memberOf" : "Roo.bootstrap.panel.Tabs",
383 "type" : "String/Number",
384 "desc" : "The id or index of the TabPanelItem to hide.",
391 "name" : "getActiveTab",
392 "desc" : "Gets the active {@link Roo.TabPanelItem}.",
394 "isConstructor" : false,
396 "memberOf" : "Roo.bootstrap.panel.Tabs",
405 "type" : "Roo.TabPanelItem",
406 "desc" : "The active TabPanelItem or null if none are active."
411 "name" : "purgeListeners",
412 "desc" : "Removes all listeners for this object",
414 "isConstructor" : false,
416 "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)",
465 "desc" : "Removes a listener (shorthand for removeListener)",
467 "isConstructor" : false,
469 "memberOf" : "Roo.util.Observable",
476 "name" : "eventName",
478 "desc" : "The type of event to listen for",
484 "desc" : "The handler to remove",
490 "desc" : "(optional) The scope (this object) for the handler",
497 "name" : "addEvents",
498 "desc" : "Used to define events on this Observable",
500 "isConstructor" : false,
502 "memberOf" : "Roo.util.Observable",
511 "desc" : "The object with the events defined",
518 "name" : "releaseCapture",
519 "desc" : "Removes <b>all</b> added captures from the Observable.",
521 "isConstructor" : false,
523 "memberOf" : "Roo.util.Observable",
531 "type" : "Observable",
532 "desc" : "The Observable to release",
539 "name" : "removeListener",
540 "desc" : "Removes a listener",
542 "isConstructor" : false,
544 "memberOf" : "Roo.util.Observable",
551 "name" : "eventName",
553 "desc" : "The type of event to listen for",
559 "desc" : "The handler to remove",
565 "desc" : "(optional) The scope (this object) for the handler",
572 "name" : "fireEvent",
573 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
575 "isConstructor" : false,
577 "memberOf" : "Roo.util.Observable",
584 "name" : "eventName",
591 "type" : "Object...",
592 "desc" : "Variable number of parameters are passed to handlers",
600 "desc" : "returns false if any of the handlers return false otherwise it returns true"
605 "name" : "hasListener",
606 "desc" : "Checks to see if this object has any listeners for a specified event",
608 "isConstructor" : false,
610 "memberOf" : "Roo.util.Observable",
617 "name" : "eventName",
619 "desc" : "The name of the event to check for",
627 "desc" : "True if the event is being listened for, else false"
633 "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.",
635 "isConstructor" : false,
637 "memberOf" : "Roo.util.Observable",
645 "type" : "Observable",
646 "desc" : "The Observable to capture",
652 "desc" : "The function to call",
658 "desc" : "(optional) The scope (this object) for the fn",
665 "name" : "addListener",
666 "desc" : "Appends an event handler to this component",
668 "isConstructor" : false,
670 "memberOf" : "Roo.util.Observable",
677 "name" : "eventName",
679 "desc" : "The type of event to listen for",
685 "desc" : "The method the event invokes",
691 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
697 "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>",
706 "name" : "tabchange",
707 "desc" : "Fires when the active tab changes",
708 "memberOf" : "Roo.bootstrap.panel.Tabs",
716 "type" : "Roo.TabPanel",
721 "name" : "activePanel",
722 "type" : "Roo.TabPanelItem",
723 "desc" : "The new active tab",
730 "name" : "beforetabchange",
731 "desc" : "Fires before the active tab changes, set cancel to true on the \"e\" parameter to cancel the change",
732 "memberOf" : "Roo.bootstrap.panel.Tabs",
740 "type" : "Roo.TabPanel",
747 "desc" : "Set cancel to true on this object to cancel the tab change",
752 "type" : "Roo.TabPanelItem",
753 "desc" : "The tab being changed to",