码迷,mamicode.com
首页 > Windows程序 > 详细

Extjs win

时间:2017-12-24 20:14:03      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:tps   false   pre   efault   blank   www.   handler   flex   function   

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

Extjs win

标签:tps   false   pre   efault   blank   www.   handler   flex   function   

原文地址:http://www.cnblogs.com/chaoyong/p/8098846.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!