Rendering ExtJS 4+ MVC application in a html div - how-to?

后端 未结 4 1489
时光取名叫无心
时光取名叫无心 2021-02-04 18:03

All examples that I have found so far explain how to render ExtJS (4.2) MVC application within the \"viewport\", which in other words means full browser screen, and occupying wh

4条回答
  •  误落风尘
    2021-02-04 18:53

    A viewport is just a specialized Ext.container.Container that auto sizes to the the document body.

    As such, you can easily create your own in the launch method:

    launch: function(){
        new MyContainer({
            renderTo: 'myDiv'
        });
    }
    

提交回复
热议问题