首页 > Windows开发 > 详细

Ext.window.Window

时间:2016-03-17 14:15:19      阅读:173      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!