ext.panel 的header部的背景色怎么改
发布网友
发布时间:2024-02-13 12:43
我来回答
共1个回答
热心网友
时间:2024-02-15 17:49
这个问题我知道!是这样设置bodyStyle:'background:#ffc;padding:10px;',
varresultsPanel=Ext.create('Ext.panel.Panel',{
title:'Results',
width:600,
height:400,
renderTo:Ext.getBody(),
bodyStyle:'background:#ffc;padding:10px;',
layout:{
type:'vbox',//Arrangechilditemsvertically
align:'stretch',//Eachtakesupfullwidth
padding:5
},
items:[{//Resultsgridspecifiedasaconfigobjectwithanxtypeof'grid'
xtype:'grid',
columns:[{header:'ColumnOne'}],//Oneheaderjustforshow.There'snodata,
store:Ext.create('Ext.data.ArrayStore',{}),//Ammyemptydatastore
flex:1//Use1/3ofContainer'sheight(hinttoBoxlayout)
},{
xtype:'splitter'//Asplitterbetweenthetwochilditems
},{//DetailsPanelspecifiedasaconfigobject(noxtypedefaultsto'panel').
title:'Details',
bodyPadding:10,
items:[{
fieldLabel:'Dataitem',
xtype:'textfield'
}],//Anarrayofformfields
flex:2//Use2/3ofContainer'sheight(hinttoBoxlayout)
}]
});