50,523
社区成员
发帖
与我相关
我的任务
分享
Ext.define('Ext.window.MyWindow', {
extend: 'Ext.window.Window',
title: 'Hello',
height: 200,
width: 400,
modal: true,
layout: 'fit',
items: [
Ext.create('Ext.panel.Panel', {
width: 300,
height: 300,
title: 'aaaaaaaaaaaaa',
items: [{
xtype: 'button',
text: Ext.util.Format.date(new Date(), 'Y-m-d H:i:s'),
handler: function(){
Ext.create('Ext.window.MyWindow').show();
}
}]
})
]
});
Ext.create('Ext.window.MyWindow').show();