How to open view after messageBox click ok using extjs?

70 Views Asked by At
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');
          }

    }
});

How to open view after messageBox click ok using extjs?

1

There are 1 best solutions below

0
On

Please try this

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
      }

}

});