//创建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

最新文章

  1. linux内核分析作业4:使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用
  2. canvas 动态画线
  3. VS下的Resharper插件报错“Can not resolve symbol”的解决办法
  4. mint锁屏设置
  5. Java中相等测试
  6. ViewFlipper的简单使用实现图片轮播效果
  7. undefined 和 null 的异同
  8. centos卸载自带的apache(httpd)
  9. AspNet MVC3中过滤器 + 实例
  10. 填写信息的文章区域text_area
  11. collections deque队列及其他队列
  12. 机器学习之十一问支持向量机(SVM)
  13. EffectiveJava阅读笔记(一)
  14. C# winform 播放资源中的音频文件
  15. u盘安装centos7.6 最新版本
  16. JS快排
  17. python --判断列表重复
  18. 13、spark-submit
  19. 程序中try、throw、catch三者之间的关系
  20. 网络基础 TCP/IP

热门文章

  1. Vue学习之路第十七篇:全局过滤器的使用
  2. 原生node实现简易留言板
  3. 51nod-独木舟问题
  4. java基础口述
  5. 2、Ansible配置文件详解
  6. django-6-数据库配置及模型创建,激活(django模型系统1)
  7. indy10中idtcpclient的使用问题[和大华电子称数据交换]
  8. mac 隐藏文件显示
  9. 工具-NuGet
  10. 数论(同余+hash)