如何在extjs中设置窗体进入窗口

How to set the form into the window in extjs

本文关键字:窗体 窗口 设置 extjs      更新时间:2023-09-26

我是一个新的extjs,我准备了一个登录表单。

我在Ext.window.Window中使用了这个表单但是当它在浏览器上显示时它是单独显示的

var win = new Ext.window.Window({
       renderTo: Ext.get('main'),
       items: form,
});
win.show();

试试这个:

var win = new Ext.window.Window({
       renderTo: Ext.getBody(),
       items: form,
});
win.show();