【问题标题】:how to put html page into ext js panel?如何将html页面放入ext js面板?
【发布时间】:2014-09-19 20:52:30
【问题描述】:

我想将一些 html 放入 ext js 面板。我有一些面板并使用panel.body.update('html code here') 方法。但是当页面大小大于面板大小时,没有滚动条可以查看整个页面。我可以修复它吗?或者还有其他方法可以将html放入Ext JS组件中?

【问题讨论】:

    标签: extjs


    【解决方案1】:

    试试下面:-

                {
                    xtype : 'panel',
                    id : 'agreement-content',
                    html : "",
                    cls : 'agreement-text'
                }
    

    然后您可以在此面板中设置您的 html,如下所示。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-28
      • 2015-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多