-1

I had an Ext application which worked fine in Ext 4, but I get error in ext 5. I am loading ext-all.js fine.

Ext.application({  // undefined method here

});

What else I need to load?

fastcodejava
  • 39,895
  • 28
  • 133
  • 186

1 Answers1

1

If you provided more code so we could see where your error is, would be preferable. But answering your question, the minimum you neeed is:

Ext.application({
    name : 'MyApp', // Your app name here

    launch : function() {
        // Your code here 
        Ext.Msg.alert('Test', 'Hello World!');
    }
});

if this code doesn't work, you probably have not imported all files needed.

Guilherme Lopes
  • 4,688
  • 1
  • 19
  • 42