Ext.window.Window
Posted 芝麻
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ext.window.Window相关的知识,希望对你有一定的参考价值。
var win = Ext.create("Ext.window.Window", { id: "myWin", title: "示例窗口", width: 500, height: 300, layout: "fit", modal: true, //透明 closable: false,//右上角关闭按钮是否显示 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(); } } ] }); win.show();
以上是关于Ext.window.Window的主要内容,如果未能解决你的问题,请参考以下文章