Ext4.2 window弹出

点击按钮实现弹出核心:

    var win = Ext.create("Ext.window.Window", {

                     title: "弹框",

                     id: "XXX",

                     autoShow: true,

                     modal: true,

                     constrainHeader: true,

                     resizable: false,

                     height: 500,

                     width: 850,

                     layout: "fit",

                     items: [],

                     listeners: {

                            'afterrender': function() {},

                            'show': function() {
                              console.log("打开windows窗口");
                             },
                            'hide':function(){
                                  console.log("关闭windows窗口");

                             }
                     }

                   });

    win.show();








 

你可能感兴趣的:(Ext)