首页 > Windows开发 > 详细

EXtJS 创建一个窗体Window

时间:2015-08-05 01:07:03      阅读:339      评论:0      收藏:0      [点我收藏+]
Ext.onReady(function(){
	//创建的窗体默认是hidden,需要调用show方法显示
	Ext.create("Ext.window.Window",{
		title:'窗体',
		height:400,
		width:300,
		layout:'fit',
		//限制边界只能在浏览器范围内
		constrain:true,
		//限制标题不能超过浏览器范围
//		constrainHeader:true,
		//模态窗体
		modal:true,
		//模态窗体
		plain:true,
		//滚动条设置
		autoScroll:true,	
		//图标加载
		icon:'../../static/extjs/icons/used/browser_window.png',
		//窗体中的内容,html内容
		html:'<div style=width:200px;height:200px>我是一个div</div><div style=width:200px;height:200px>我是第二个div</div>',
		//渲染的哪个地方
		renderTo:Ext.getBody()
	}).show();
})

EXtJS 创建一个窗体Window

原文:http://blog.csdn.net/h249059945/article/details/47284747

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!