如何在使用extjs单击确定消息框后打开视图?

时间:2017-01-02 06:08:06

标签: extjs4.2

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单击确定消息框后打开视图?

1 个答案:

答案 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
      }

}

});