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();
});
運行效果如下: