// 上级页面的高度/宽度(weight) Ext.getBody().getViewSize().height // 普通按扭 { xtype:"button", text:"取消", handler : function(){ } } // 普通文字控件 { xtype:'tbtext', id : 'file1_name', text : '1', width : 40 } Ext.util.Format.round(123.45,1); // 保留1位小数
// 单选按扭加图片
{ id : 'test', xtype: 'radiogroup', fieldLabel : '', border : true, items: [ { boxLabel: "<img width='165' height='165' src='img.img' />"}, ] }
// 隐藏控件
Ext.getCmp("test"").getEl().up('.x-form-item').setDisplayed(false);
{ xtype : 'textfield', fieldLabel : '年龄', // 标签 name : age, // name:后台根据此name属性取值 anchor : '100%', // 宽度百分比 hidden : true, hideLabel : true } // 隐藏时,hidden和hideLabel都必须为true