Ext4.2 window弹出

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:31   2989   0
点击按钮实现弹出核心:

    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();








分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP