Ext Window窗体
Ext.Window继承自Panel,默认可以改变大小、拖拽,最大化和最小化,Window默认是被渲染在body中,可以通过renderTo改变
-
Window常用的配置属性如下:
- Window的标题文字
- Window的宽度
- Window的高度
- 是否可以关闭
- 布局方式
- 标题的位置:left right top bottom
- 内容项
Ext.onReady(function(){
Ext.create("Ext.Window",{
title:'Left title',
width:400,
height:200,
layout:'fit',
renderTo:Ext.getBody(),
headerPosition:'left',
shadow:true,
items:{border:false}
}).show();
});
运行效果如下: