|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_layout_TableLayout({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.layout.ContainerLayout","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.layout.ContainerLayout' rel='Ext.layout.ContainerLayout' class='docClass'>Ext.layout.ContainerLayout</a><div class='subclass '><strong>Ext.layout.TableLayout</strong></div></div><h4>Files</h4><div class='dependency'><a href='source/TableLayout.html#Ext-layout-TableLayout' target='_blank'>TableLayout.js</a></div></pre><div class='doc-contents'><p>This layout allows you to easily render content into an HTML table. The total number of columns can be\nspecified, and rowspan and colspan can be used to create complex layouts within the table.\nThis class is intended to be extended or created via the layout:'table' <a href=\"#!/api/Ext.Container-cfg-layout\" rel=\"Ext.Container-cfg-layout\" class=\"docClass\">Ext.Container.layout</a> config,\nand should generally not need to be created directly via the new keyword.</p>\n\n\n<p>Note that when creating a layout via config, the layout-specific config properties must be passed in via\nthe <a href=\"#!/api/Ext.Container-cfg-layoutConfig\" rel=\"Ext.Container-cfg-layoutConfig\" class=\"docClass\">Ext.Container.layoutConfig</a> object which will then be applied internally to the layout. In the\ncase of TableLayout, the only valid layout config property is <a href=\"#!/api/Ext.layout.TableLayout-cfg-columns\" rel=\"Ext.layout.TableLayout-cfg-columns\" class=\"docClass\">columns</a>. However, the items added to a\nTableLayout can supply the following table-specific config properties:</p>\n\n\n<ul>\n<li><b>rowspan</b> Applied to the table cell containing the item.</li>\n<li><b>colspan</b> Applied to the table cell containing the item.</li>\n<li><b>cellId</b> An id applied to the table cell containing the item.</li>\n<li><b>cellCls</b> A CSS class name added to the table cell containing the item.</li>\n</ul>\n\n\n<p>The basic concept of building up a TableLayout is conceptually very similar to building up a standard\nHTML table. You simply add each panel (or \"cell\") that you want to include along with any span attributes\nspecified as the special config properties of rowspan and colspan which work exactly like their HTML counterparts.\nRather than explicitly creating and nesting rows and columns as you would in HTML, you simply specify the\ntotal column count in the layoutConfig and start adding panels in their natural order from left to right,\ntop to bottom. The layout will automatically figure out, based on the column count, rowspans and colspans,\nhow to position each panel within the table. Just like with HTML tables, your rowspans and colspans must add\nup correctly in your overall layout or you'll end up with missing and/or extra cells! Example usage:</p>\n\n\n<pre><code>// This code will generate a layout table that is 3 columns by 2 rows\n// with some spanning included. The basic layout will be:\n// +--------+-----------------+\n// | A | B |\n// | |--------+--------|\n// | | C | D |\n// +--------+--------+--------+\nvar table = new <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Ext.Panel</a>({\n title: 'Table Layout',\n layout:'table',\n defaults: {\n // applied to each contained panel\n bodyStyle:'padding:20px'\n },\n layoutConfig: {\n // The total column count must be specified here\n columns: 3\n },\n items: [{\n html: '<p>Cell A content</p>',\n rowspan: 2\n },{\n html: '<p>Cell B content</p>',\n colspan: 2\n },{\n html: '<p>Cell C content</p>',\n cellCls: 'highlight'\n },{\n html: '<p>Cell D content</p>'\n }]\n});\n</code></pre>\n\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-
|