You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
480 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. Ext.data.JsonP.Ext_TabPanel({"alternateClassNames":[],"aliases":{"widget":["tabpanel"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.Panel","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.Component' rel='Ext.Component' class='docClass'>Ext.Component</a><div class='subclass '><a href='#!/api/Ext.BoxComponent' rel='Ext.BoxComponent' class='docClass'>Ext.BoxComponent</a><div class='subclass '><a href='#!/api/Ext.Container' rel='Ext.Container' class='docClass'>Ext.Container</a><div class='subclass '><a href='#!/api/Ext.Panel' rel='Ext.Panel' class='docClass'>Ext.Panel</a><div class='subclass '><strong>Ext.TabPanel</strong></div></div></div></div></div></div><h4>Files</h4><div class='dependency'><a href='source/TabPanel.html#Ext-TabPanel' target='_blank'>TabPanel.js</a></div></pre><div class='doc-contents'><p>A basic tab container. TabPanels can be used exactly like a standard <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Ext.Panel</a>\nfor layout purposes, but also have special support for containing child Components\n(<tt><a href=\"#!/api/Ext.Container-property-items\" rel=\"Ext.Container-property-items\" class=\"docClass\">items</a></tt>) that are managed using a\n<a href=\"#!/api/Ext.layout.CardLayout\" rel=\"Ext.layout.CardLayout\" class=\"docClass\">CardLayout layout manager</a>, and displayed as separate tabs.</p>\n\n\n<p><b>Note:</b> By default, a tab's close tool <i>destroys</i> the child tab Component\nand all its descendants. This makes the child tab Component, and all its descendants <b>unusable</b>. To enable\nre-use of a tab, configure the TabPanel with <b><code><a href=\"#!/api/Ext.TabPanel-cfg-autoDestroy\" rel=\"Ext.TabPanel-cfg-autoDestroy\" class=\"docClass\">autoDestroy: false</a></code></b>.</p>\n\n<p><b><u>TabPanel header/footer elements</u></b></p>\n\n\n<p>TabPanels use their <a href=\"#!/api/Ext.Panel-property-header\" rel=\"Ext.Panel-property-header\" class=\"docClass\">header</a> or <a href=\"#!/api/Ext.Panel-cfg-footer\" rel=\"Ext.Panel-cfg-footer\" class=\"docClass\">footer</a> element\n(depending on the <a href=\"#!/api/Ext.TabPanel-cfg-tabPosition\" rel=\"Ext.TabPanel-cfg-tabPosition\" class=\"docClass\">tabPosition</a> configuration) to accommodate the tab selector buttons.\nThis means that a TabPanel will not display any configured title, and will not display any\nconfigured header <a href=\"#!/api/Ext.Panel-cfg-tools\" rel=\"Ext.Panel-cfg-tools\" class=\"docClass\">tools</a>.</p>\n\n\n<p>To display a header, embed the TabPanel in a <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Panel</a> which uses\n<b><tt><a href=\"#!/api/Ext.Container-cfg-layout\" rel=\"Ext.Container-cfg-layout\" class=\"docClass\">layout:'fit'</a></tt></b>.</p>\n\n\n\n\n<p><b><u>Tab Events</u></b></p>\n\n\n<p>There is no actual tab class &mdash; each tab is simply a <a href=\"#!/api/Ext.BoxComponent\" rel=\"Ext.BoxComponent\" class=\"docClass\">Component</a>\nsuch as a <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Panel</a>. However, when rendered in a TabPanel, each child Component\ncan fire additional events that only exist for tabs and are not available from other Components.\nThese events are:</p>\n\n\n<div><ul class=\"mdetail-params\">\n<li><tt><b><a href=\"#!/api/Ext.Panel-event-activate\" rel=\"Ext.Panel-event-activate\" class=\"docClass\">activate</a></b></tt> : Fires when this Component becomes\nthe active tab.</li>\n<li><tt><b><a href=\"#!/api/Ext.Panel-event-deactivate\" rel=\"Ext.Panel-event-deactivate\" class=\"docClass\">deactivate</a></b></tt> : Fires when the Component that\nwas the active tab becomes deactivated.</li>\n<li><tt><b><a href=\"#!/api/Ext.Panel-event-beforeclose\" rel=\"Ext.Panel-event-beforeclose\" class=\"docClass\">beforeclose</a></b></tt> : Fires when the user clicks on the close tool of a closeable tab.\