Home  >  Article  >  Web Front-end  >  Learn ExtJS table layout_extjs

Learn ExtJS table layout_extjs

WBOY
WBOYOriginal
2016-05-16 18:45:071257browse

1. Table layout is defined by the class Ext.layout.TableLayout, which is similar to the table in HTML and can merge rows or columns.
layoutConfig uses columns to specify that the parent container is divided into 3 columns, and
rowspan merges the number of rows.
colspan merges the number of columns.
2. Application examples

Copy code The code is as follows:

Ext.onReady(function (){
var _panel = new Ext.Panel({
title:"Personnel Information",
renderTo:Ext.getBody(),
width:500,
height:200,
layout:"table",
layoutConfig: {
columns: 3
},
items:[{title:"child element 1",html:"This is child element 1 Content", rowspan:2,height:100},
{title:"Sub-element 2",html:"This is the content of sub-element 2",colspan:2},
{title:" Child element 3",html:"This is the content in child element 3"},
{title:"Sub element 4",html:"This is the content in child element 4"}
]
}
);
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn