zoukankan      html  css  js  c++  java
  • ExtJs4.1布局具体解释

    Border布局:

    Ext.onReady(function(){
        Ext.QuickTips.init();
        Ext.create('Ext.container.Viewport', {   //通常是渲染到viewport中
            title: "table布局的面板",
            layout:'border',
            defaults: {
                collapsible: true,  //可收起
                split: true,
                bodyStyle: 'padding:15px'
            },
            items: [{
                title: '上面north',
                region: 'north',      //位置
                height: 100
            },{
                title: '以下south',
                region: 'south',    //位置
                height: 150,
                minSize: 75,
                maxSize: 250
            },{
                title: '左面west',
                region:'west',    //位置
                margins: '5 0 0 0',
                175,
                minSize: 100,
                maxSize: 250
            },{
                title: '中间Content',
                collapsible: false,  //不可收起
                region:'center',    //位置
                margins: '5 0 0 0'
            },{
                title: '右面east',
                175,
                region:'east',   //位置
                margins: '5 0 5 5'
            }]
        });
    })

    效果图:


  • 相关阅读:
    软考
    十步走-阅读笔记
    软著申请
    十步走-阅读笔记
    基于Ubuntu安装部署ZooKeeper
    基于Ubuntu安装JDK(OPenJDK8)
    Intern Day89
    阿里巴巴Java研发工程师技术一面
    面试
    6_moc.md
  • 原文地址:https://www.cnblogs.com/llguanli/p/6937885.html
Copyright © 2011-2022 走看看