Extjs win
//创建window
var win = Ext.create("Ext.window.Window", {
id: "myWin",
title: "示例窗口",
width: 500,
height: 300,
layout: "fit",
items: [
{
xtype: "form",
defaultType: 'textfield',
defaults: {
anchor: '100%',
},
fieldDefaults: {
labelWidth: 80,
labelAlign: "left",
flex: 1,
margin: 5
},
items: [
{
xtype: "container",
layout: "hbox",
items: [
{ xtype: "textfield", name: "name", fieldLabel: "姓名", allowBlank: false },
{ xtype: "numberfield", name: "age", fieldLabel: "年龄", decimalPrecision: 0, vtype: "age" }
]
}
]
}
],
buttons: [
{ xtype: "button", text: "确定", handler: function () { this.up("window").close(); } },
{ xtype: "button", text: "取消", handler: function () { this.up("window").close(); } }
]
});
记录贴,转自:
https://www.cnblogs.com/youring2/p/3990424.html
最新文章
- linux内核分析作业4:使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用
- canvas 动态画线
- VS下的Resharper插件报错“Can not resolve symbol”的解决办法
- mint锁屏设置
- Java中相等测试
- ViewFlipper的简单使用实现图片轮播效果
- undefined 和 null 的异同
- centos卸载自带的apache(httpd)
- AspNet MVC3中过滤器 + 实例
- 填写信息的文章区域text_area
- collections deque队列及其他队列
- 机器学习之十一问支持向量机(SVM)
- EffectiveJava阅读笔记(一)
- C# winform 播放资源中的音频文件
- u盘安装centos7.6 最新版本
- JS快排
- python --判断列表重复
- 13、spark-submit
- 程序中try、throw、catch三者之间的关系
- 网络基础 TCP/IP