var myWindow = Ext.Msg.show({
title: "Registration Revert",
message: "Registration successful",
buttonText: { ok: 'OK'},
fn: function (btn) {
if (btn == 'ok') {
console.log('recieve');
me.fireEvent('afterRegister');
}
}
});
如何在使用extjs单击确定消息框后打开视图?
答案 0 :(得分:0)
请试试这个
var myWindow = Ext.Msg.show({
title: "Registration Revert",
message: "Registration successful",
buttonText: { ok: 'OK'},
fn: function (btn) {
if (btn == 'ok') {
console.log('recieve');
Ext.create('MyApp.view.MyWindow').show(); // Give your app name and View name according to your application
}
}
});