extjsextjs4

Extjs's Window, Can't Show Again


I'm studying with Extjs4.

I made Ext.window.Window, and use show() Method. After I closed the Window, and Again use show() Method, it doesn't appear.

What can I do to resolve this problem?


Solution

  • Window by default is set up to be destroyed on close. To change this behavior set closeAction to 'hide':

    Ext.create('Ext.window.Window', {
      closeAction: 'hide',
      // ...