当前位置:首页 > Windows程序 > 正文

EXtJS 创建一个窗体Window

2021-03-28 Windows程序

标签:

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

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/68846.html