Good day!
I work on ext js 4.2 .
Tell me, please, how to make it so that when you press a button-а , a new window opens?
Well, type, btnCreate.onClick(windows.show()) .

Here is the window that I created

  var crtWindow = Ext.create('Ext.window.Window') 

What to write?

 handler: function () { crtWindow.show(); } 
  • ExtJs is a library in a classic style. You need to create an ext.button.Button instance, hang a handler for it. Look at the docks, ohrennenye docks, everything is described there. - Duck Learns to Take Cover
  • I have an instance of a button . What to write in the handler ? - propro17
  • @ Duck I updated the question - propro17
  • I decided. Now another problem. When you press x on the window, it closes. when you click back on the button window is not called. how to fix? - propro17

0