杂记

Ext 表单text 后带* 属性   afterLabelTextTpl : requiredTpl  

Ext 表单 性别   

xtype : 'radiogroup',
fieldLabel : '性别',
items : [ {
xtype : 'radiofield',
inputValue : '男',
name : 'xingbie',
checked : true,
boxLabel : '男'
}, {
xtype : 'radiofield',
inputValue : '女',
name : 'xingbie',
boxLabel : '女'
} ]

 

清空   this.getActionPanel().getForm().reset();  方法是reset

 

 

, {
text : '统计日期',
dataIndex : 'tongjiriqi',
renderer : Ext.util.Format.dateRenderer('Y-m-d')
},
{
text : '是否参与统计',
dataIndex : 'shifouchanyutongji',
renderer : function(value){
if(value == 1){
return '是';
}
return '否';
}
}

 

posted @ 2014-01-16 11:19  染指丶红莲  阅读(111)  评论(0)    收藏  举报