EXTJS 4.2 资料 控件之Window窗体相关属性的用法

最大化,最小化,是否显示关闭按钮

var win_CommonPicLibMultiple = Ext.create("Ext.window.Window", {
    title: "选择图片",       //标题
    draggable: false,
    border: false,
    icon: '/Resources/Images/16x16/blue16_005.gif',
    height: 800,                          //高度
    width: 1200,                          //宽度
    layout: "fit",                        //窗口布局类型
    modal: true, //是否模态窗口,默认为false
    resizable: false,
    closeAction: 'hide',
    enableTabScroll: true,
    layout: 'border',
    border: false,
    plain: true,
    closable: true,   //是否显示关闭按钮
    maximizable: true,//最大化
    minimizable: true,//最小化
    draggable: true,  //是否可以拖动
    listeners: {
        minimize: function (win_CommonPicLibMultiple, opts) {
            win_CommonPicLibMultiple.collapse();
        }
    },
    items: [west, center, east],//主框架分为四个面板[顶部,左侧(菜单),中部(主面板),底部
    buttons: [{
        text: '确认', icon: '/Resources/Images/16x16/blue16_054.gif', handler: function () {
           

        }
    }, {
        text: '取消', icon: '/Resources/Images/16x16/blue16_032.gif',
        handler: function () {
            win_CommonPicLibMultiple.hide();
        }
    }
    ]
});

 

转载于:https://www.cnblogs.com/foreverfendou/p/4279728.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值