Sha256: b18246a3d4ac85327c219b68b5158123fa686cf22b1aa7750e7652dd66d796d0

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

Ext.define('FastUI.view.Viewport', {
    extend:'Ext.container.Viewport',
    id:'port',
    layout:'border',
    items:[
        {
            height:43,
            html:"<div class=\'fastui-header\'><span class=\'caption\'>"+ app_project +"</span><span class=\'version\'>("+ app_version +")</span></div>",
            region:"north",
            split:true,
            xtype:"component"
        },
        {
            region:"west",
            activeTab:0,
            collapseMode:"mini",
            collapsible:true,
            split:true,
            width:295,
            defaults:{border:false},
            items:[Ext.create('FastUI.view.VMenu'),{title:'帮助',iconCls:'fastui-btn-help'}],
            xtype:"tabpanel"
        },
        {
            region:"south",
            border:false,
            height:28,
            items:[{xtype:"tbfill"},{style:"font-weight:bold",text:app_copyright ,xtype:"tbtext"}],
            xtype:"toolbar"
        },
        {
            id:'mycenter',
               region: 'center',
               xtype: 'tabpanel', // TabPanel itself has no title
               activeTab: 0,      // First tab active by default
            //maskOnDisable: false,

               items: [{
                   title: '首页',
                   iconCls:'fastui-home',
                   border:false,

                   html: 'The first tab\'s content. Others may be added dynamically'
               }]
        }
    ],
    listeners: {
        afterrender: function() {
            var mask = Ext.get('fastui-loading');
            mask.fadeOut({callback: function(){ mask.destroy(); }});
        }
    }
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastui-0.1.4 app/assets/javascripts/fastui/app/view/Viewport.js
fastui-0.1.3 app/assets/javascripts/fastui/app/view/Viewport.js
fastui-0.1.2 app/assets/javascripts/fastui/app/view/Viewport.js