Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将html页面放入ExtJS面板?_Extjs - Fatal编程技术网

如何将html页面放入ExtJS面板?

如何将html页面放入ExtJS面板?,extjs,Extjs,我想在ExtJS面板中添加一些html。我有一些面板和使用panel.body.update'HTMLCodehere'方法。但是当页面大小大于面板大小时,就没有滚动条可以看到整个页面。我能修一下吗?或者有其他方法将html放入Ext JS组件中?请尝试以下方法:- { xtype : 'panel', id : 'agreement-content', html : "",

我想在ExtJS面板中添加一些html。我有一些面板和使用panel.body.update'HTMLCodehere'方法。但是当页面大小大于面板大小时,就没有滚动条可以看到整个页面。我能修一下吗?或者有其他方法将html放入Ext JS组件中?

请尝试以下方法:-

            {
                xtype : 'panel',
                id : 'agreement-content',
                html : "",
                cls : 'agreement-text'
            }
然后,您可以在下面的面板中设置html

Ext.getCmp('agreement-content').setHtml('Your html content');