<script type="text/javascript">
Ext.onReady(function(){
var oneTbar = new Ext.Toolbar({
items: ['开始时间',{
xtype:'datefield',
id : 'startDate',
editable:false,
height:20,
format:'Y-m-d'
},{
text:'清空',
handler:function(){
Ext.getCmp("startDate").setValue("");
}
}]
});
var twoTbar = new Ext.Toolbar({
items: ['结束时间',{
xtype:'datefield',
id : 'endDate',
editable:false,
height:20,
format:'Y-m-d'
},{
text:'清空',
handler:function(){
Ext.getCmp("endDate").setValue("");
}
}]
});
var w = new Ext.Window({
title:"消息",
width:520,
height:500,
layout: "anchor",
buttonAlign:"center",
tbar:{
xtype: 'container',
items: [oneTbar,twoTbar]
},
bbar: {
xtype: 'container',
items: [oneTbar,twoTbar]
}
});
w.show();
});
</script>
ext中显示多行bbar/tbar
最新推荐文章于 2019-04-19 09:41:26 发布