sencha怎么在control层调用按钮

 

暂时在这里总结了3种方法:

config: {
refs: {
sendMaint: 'sendMaint',
basicinfolist:'basicinfolist',
refreshButton: '#bill_refreshButon',
},
control: {
refreshButton: {
tap: 'onRefreshBill'       // id: 'bill_refreshButton',
},
basicinfolist:{
viewDrawCommand: 'onSelHistory'   //this.fireEvent('viewDrawCommand', record);
},
'sendMaint searchfield[action=cx]': {   //xtype:searchfield,action:cx
change: 'onSelectChange2duox'
},
'sendMaint button[action=onSaveBtn]' : {  //xtype:button,action:onSaveBtn
tap : 'onSaveBtn'
}

}

posted @ 2013-10-06 23:47  江湖小谢*VIP  阅读(274)  评论(0编辑  收藏  举报