/* 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.ContainerLayout
Ext.layout.TableLayout

Files

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\n

Note 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\n\n\n\n

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:

\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\n
Defined By

Config options

Ext.layout.TableLayout
view source
: Number
The total number of columns to create in the table for this layout. ...

The 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.

\n
An optional extra CSS class that will be added to the container. ...

An 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\n

Note: extraCls defaults to '' except for the following classes\nwhich assign a value by default:\n

\nTo configure the above Classes with an extra CSS class append to the default. For example,\nfor ColumnLayout:\n
extraCls: 'x-column custom-class'\n
\n

\n\n

True to hide each contained item on render (defaults to false).

\n

True to hide each contained item on render (defaults to false).

\n
Ext.layout.TableLayout
view source
: Object
An object containing properties which are added to the DomHelper specification\nused to create the layout's <table&...

An 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\n
Defined By

Properties

The Ext.Template used by Field rendering layout classes (such as\nExt.layout.FormLayout) to create the DOM structure o...

The 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.

\n

Placeholder for the derived layouts

\n

Placeholder for the derived layouts

\n
Ext.layout.TableLayout
view source
: Booleanprivate
private ...

private

\n

Defaults to: false

Overrides: Ext.layout.ContainerLayout.monitorResize

Ext.layout.TableLayout
view source
: Stringprivate
...
\n

Defaults to: 'x-table-layout-ct'

Ext.layout.TableLayout
view source
: Stringprivate
...
\n

Defaults to: 'table'

Overrides: Ext.layout.ContainerLayout.type

Defined By

Methods

Workaround for how IE measures autoWidth elements. ...

Workaround 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
\n

Parameters

  • target : Object
    \n
  • viewFlag : Object
    \n
...
\n

Parameters

  • c : Object
    \n
Applies extraCls and hides the item if renderHidden is true ...

Applies extraCls and hides the item if renderHidden is true

\n

Parameters

  • c : Object
    \n
Ext.layout.TableLayout
view source
( )private
Ext.layout.TableLayout
view source
( c )private
private ...

private

\n

Parameters

  • c : Object
    \n
Ext.layout.TableLayout
view source
( colIndex, rowIndex )private
private ...

private

\n

Parameters

  • colIndex : Object
    \n
  • rowIndex : Object
    \n
private. ...

private.\nGet all rendered items to lay out.

\n

Parameters

  • ct : Object
    \n
Ext.layout.TableLayout
view source
( index )private
private ...

private

\n

Parameters

  • index : Object
    \n
Ext.layout.TableLayout
view source
( c, target )private
private ...

private

\n

Parameters

  • c : Object
    \n
  • target : Object
    \n

Overrides: Ext.layout.ContainerLayout.isValidParent

private ...

private

\n
Ext.layout.TableLayout
view source
( ct, target )private
private ...

private

\n

Parameters

  • ct : Object
    \n
  • target : Object
    \n

Overrides: Ext.layout.ContainerLayout.onLayout

...
\n

Parameters

  • c : Object
    \n
Parses a number or string representing margin sizes into an object. ...

Parses 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)

\n

Parameters

Returns

  • Object

    An object with margin sizes for top, right, bottom and left

    \n
private ...

private

\n

Parameters

  • ct : Object
    \n
  • target : Object
    \n
Ext.layout.TableLayout
view source
( c, position, target )private
private\n\nRenders the given Component into the target Element. ...

private

\n\n

Renders the given Component into the target Element. If the Component is already rendered,\nit is moved to the provided target instead.

\n

Parameters

  • c : Ext.Component

    The Component to render

    \n\n\n\n
  • position : Number

    The position within the target to render the item to

    \n\n\n\n
  • target : Ext.Element

    The target Element

    \n\n\n\n

Overrides: Ext.layout.ContainerLayout.renderItem

Ext.layout.TableLayout
view source
( ct )private
private ...

private

\n

Parameters

  • ct : Object
    \n

Overrides: Ext.layout.ContainerLayout.setContainer

","superclasses":["Ext.layout.ContainerLayout"],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"TableLayout.html#Ext-layout-TableLayout","filename":"TableLayout.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.layout.ContainerLayout","meta":{},"name":"fieldTpl","id":"property-fieldTpl"},{"tagname":"property","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"getLayoutTargetSize","id":"property-getLayoutTargetSize"},{"tagname":"property","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"monitorResize","id":"property-monitorResize"},{"tagname":"property","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"targetCls","id":"property-targetCls"},{"tagname":"property","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"type","id":"property-type"}],"cfg":[{"tagname":"cfg","owner":"Ext.layout.TableLayout","meta":{},"name":"columns","id":"cfg-columns"},{"tagname":"cfg","owner":"Ext.layout.ContainerLayout","meta":{},"name":"extraCls","id":"cfg-extraCls"},{"tagname":"cfg","owner":"Ext.layout.ContainerLayout","meta":{},"name":"renderHidden","id":"cfg-renderHidden"},{"tagname":"cfg","owner":"Ext.layout.TableLayout","meta":{},"name":"tableAttrs","id":"cfg-tableAttrs"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"IEMeasureHack","id":"method-IEMeasureHack"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"afterRemove","id":"method-afterRemove"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"configureItem","id":"method-configureItem"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"destroy","id":"method-destroy"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"getNextCell","id":"method-getNextCell"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"getNextNonSpan","id":"method-getNextNonSpan"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"getRenderedItems","id":"method-getRenderedItems"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"getRow","id":"method-getRow"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"isValidParent","id":"method-isValidParent"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"layout","id":"method-layout"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"onLayout","id":"method-onLayout"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"onRemove","id":"method-onRemove"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"onResize","id":"method-onResize"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{},"name":"parseMargins","id":"method-parseMargins"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"renderAll","id":"method-renderAll"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"renderItem","id":"method-renderItem"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"runLayout","id":"method-runLayout"},{"tagname":"method","owner":"Ext.layout.TableLayout","meta":{"private":true},"name":"setContainer","id":"method-setContainer"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.layout.TableLayout","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.layout.TableLayout","mixins":[],"mixedInto":[]});