Ext.onReady(function(){
Ext.create('Ext.window.Window', {
title: '我是title',
height: 200, //Number型 也可以是字符串类型 width:'60%'
width: 400,
layout: 'fit',
//constrain: true, //闲置窗口不超出浏览器
constrainHeader:true, //标题不能超出浏览器边界
modal: true, //设置模态窗口
plain:true, //窗口设置透明背景
//icon:'', //图标路径
//iconCls:'', //图标样式
x:50, //设置窗口左上角位置 (xy都是小写)
y:50,
html:'<div style = "height:100px">我是第一个div</div><div style = "height:200px">我是第一个div</div>',
autoScroll:true //显示滚动条
/* items: { // Let's put an empty grid in just to illustrate fit layout
xtype: 'grid',
border: false,
columns: [{header: 'World'}], // One header just for show. There's no data,
store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
}*/
}).show();
})
Ext_window组件(一)
最新推荐文章于 2018-05-14 16:31:01 发布