是否可以向Ext.MessageBox.confirm添加自定义按钮.按照自定义我的意思是自定义文本和自定义按钮数...
Ext.MessageBox.confirm('Delete', 'Are you sure ?', function(btn){ if(btn === 'yes'){ return true; } else{ return false; } });
CD.... 11
尝试设置buttonText
,如:
Ext.MessageBox.show({ title: 'Delete', message: 'Are you sure ?', width: 300, buttons: Ext.Msg.YESNO, buttonText: { yes: 'Yesssss!!!', no: 'Nooo!!!' } });
示例:https://fiddle.sencha.com/#fiddle/12bq
尝试设置buttonText
,如:
Ext.MessageBox.show({ title: 'Delete', message: 'Are you sure ?', width: 300, buttons: Ext.Msg.YESNO, buttonText: { yes: 'Yesssss!!!', no: 'Nooo!!!' } });
示例:https://fiddle.sencha.com/#fiddle/12bq