开发者

How to have a panel take up the whole page?

开发者 https://www.devze.com 2023-02-19 14:28 出处:网络
How would I modify this snippet from the tutorial Ext.get(document.body).update(\'<div id=\"test\"></div>\');

How would I modify this snippet from the tutorial

Ext.get(document.body).update('<div id="test"></div>');
new Ext.Panel({
    renderTo: 'test',
    width: '200px',
    t开发者_运维技巧itle: 'My Title',
    html: 'My HTML content',
});

so that the example panel took up all available space?


new Ext.Viewport({
    layout: 'fit',
    items: [{
        title: 'My Title',
        html: 'My HTML content'
    }]
});
0

精彩评论

暂无评论...
验证码 换一张
取 消