Extjs monthfield的调用如下:
{
xtype:"monthfield",
id:"month",
format:"Y-m",
value:Ext.util.Format.date(new Date(), 'Y-m'),
listeners: {
change: function(){
var month = Ext.util.Format.date(Ext.getCmp("month").getValue(), 'Y-m') + '-00';
//load date
store_effort.load({
params: {
project_id : [% project_id %],
type : 'effort',
month : month
}
});
}
}
}{
xtype:"