/* 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 Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements 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 department at 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":"
Hierarchy
Ext.layout.ContainerLayoutExt.layout.TableLayoutFiles
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' Ext.Container.layout config,\nand should generally not need to be created directly via the new keyword.
\n\n\nNote that when creating a layout via config, the layout-specific config properties must be passed in via\nthe Ext.Container.layoutConfig object which will then be applied internally to the layout. In the\ncase of TableLayout, the only valid layout config property is columns. However, the items added to a\nTableLayout can supply the following table-specific config properties:
\n\n\nThe 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:
\n\n\n// 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 Ext.Panel({\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
\n\nThe total number of columns to create in the table for this layout. If not specified, all Components added to\nthis layout will be rendered into a single row using one column per Component.
\nAn optional extra CSS class that will be added to the container. This can be useful for adding\ncustomized styles to the container or any of its children using standard CSS rules. See\nExt.Component.ctCls also.
\n\n\nNote: extraCls defaults to '' except for the following classes\nwhich assign a value by default:\n
extraCls: 'x-column custom-class'\n
\n\n\nTrue to hide each contained item on render (defaults to false).
\nTrue to hide each contained item on render (defaults to false).
\nAn object containing properties which are added to the DomHelper specification\nused to create the layout's <table> element. Example:
\n\n\n{\n xtype: 'panel',\n layout: 'table',\n layoutConfig: {\n tableAttrs: {\n style: {\n width: '100%'\n }\n },\n columns: 3\n }\n}
\n\nThe Ext.Template used by Field rendering layout classes (such as\nExt.layout.FormLayout) to create the DOM structure of a fully wrapped,\nlabeled and styled form Field. A default Template is supplied, but this may be\noverriden to create custom field structures. The template processes values returned from\nExt.layout.FormLayout.getTemplateArgs.
\nPlaceholder for the derived layouts
\nPlaceholder for the derived layouts
\nWorkaround for how IE measures autoWidth elements. It prefers bottom-up measurements
\n\n whereas other browser prefer top-down. We will hide all target child elements before we measure and\n put them back to get an accurate measurement.\n
\nApplies extraCls and hides the item if renderHidden is true
\nprivate
\nprivate.\nGet all rendered items to lay out.
\nParses a number or string representing margin sizes into an object. Supports CSS-style margin declarations\n(e.g. 10, \"10\", \"10 10\", \"10 10 10\" and \"10 10 10 10\" are all valid options and would return the same result)
\nAn object with margin sizes for top, right, bottom and left
\nprivate
\n\nRenders the given Component into the target Element. If the Component is already rendered,\nit is moved to the provided target instead.
\nThe Component to render
\n\n\n\nThe position within the target to render the item to
\n\n\n\nThe target Element
\n\n\n\nOverrides: Ext.layout.ContainerLayout.renderItem