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'
}

}

原文地址:https://www.cnblogs.com/xiexy/p/3354844.html