我有一个像这样配置的 MessageBox
Ext.MessageBox.show({
buttons:Ext.MessageBox.OKCANCEL,
prompt:true,
buttonText:{ok:"Button1",cancel:"Button2"},
fn:function(btn, text, cBoxes){
if(btn=='ok'){
// do not close
// return false does not help
}
}
});
我不知道如何防止它在按钮单击时关闭。特别是,当用户点击“确定”按钮时,我不想让它关闭。我在网上看到过覆盖,但不知道如何配置按钮属性。我想,这个任务应该有一个非常简单的解决方案。