this.items=[{
fieldLabel:'公告内容',
maxLength:50,
xtype:'htmleditor',
height:400,
name:'content'
},{
layout:'column',
xtype: 'container',
anchor:'100%',
defaults:{
border:false,
frame:true
},
items:[
{layout:'form',columnWidth:.9,
items:[{fieldLabel:'附件',
xtype:'filefield',
buttonText:"浏览",
name:'file'}]},
{layout:'form',columnWidth:.1,
items:[{xtype:'button',text:'删除',scope:this,handler:function(){this.down("filefield").reset();}}]}
]
},
ExtJS4对于3来说变化还比较大嘛,部分地方写法都不一样了。比如,我写一个表单FORM。
?
第一个是,3是不需要写xtype:'container'
1 |
|
