PDA

View Full Version : Display Modal WIndow



extremekc
25 Aug 2013, 6:18 PM
I have a window (Ext.window.Window) - and when I click on a button, I want to display a modal window (Ext.window.Window)

What is the simplest way to do that?

Zinnia
26 Aug 2013, 4:40 AM
Check the below code, this may help you Ext.create('Ext.window.Window', { title: 'Hello', height: 200, width: 300, items: { xtype: 'button', text: 'Test', handler: function(){ Ext.create('Ext.window.Window', { title: '2nd window', height: 100, width: 100, modal: true }).show(); } } }).show();