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

Ext.window.Window

时间:2016-03-17 14:16:30      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:

 

 

            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

标签:

原文地址:http://www.cnblogs.com/nidongde/p/5286972.html

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