//创建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(); } }
]
});
Extjs win
Posted 一轮明月随潮涌
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Extjs win相关的知识,希望对你有一定的参考价值。
以上是关于Extjs win的主要内容,如果未能解决你的问题,请参考以下文章