标签:any tabpanel tput item params array doc pac ati
Ext.TabPanel中的items:
(来自项目源代码中的items条目代码)
items:{
id:"opt1",
title:"默认页面",
tabTip:"这是默认页面,不能够关闭",
html:"这是默认页面哦!
"
},,,,
items里面的这一组配置到底是创建什么组件的配置项,在哪里有说明呢?英文原版api给出了说明。
If an xtype
is not explicitly
specified, the defaultType for that Container is used.
这一句话的翻译是。假设xtype没有被明白的指出,Container的defaultType将被用作xtype的值;
Container的defaultType的默认值是panel。
items : Object/Array
** IMPORTANT: be sure to specify a layout
if needed ! **
A single item, or an array of child Components to be added to this container,for example:
// specifying a single item
items: {...},
layout: ‘fit‘, // specify a layout!
// specifying multiple items
items: [{...}, {...}],
layout: ‘anchor‘, // specify a layout!
Each item may be:
xtype
xtype
is not explicitlyspecified, the
defaultType for that Container is used.Notes:
contentEl
/html
with items
.Class Ext.Container:
The default xtype of child Components to create in this Container whena child item is specified as a raw configuration object, rather than as an instantiated Component.
Defaults to ‘panel‘
, except
Ext.menu.Menu which defaults to ‘menuitem‘
,and
Ext.Toolbar and
Ext.ButtonGroup which default to ‘button‘
标签:any tabpanel tput item params array doc pac ati
原文地址:http://www.cnblogs.com/mfmdaoyou/p/6875578.html