【问题标题】:EXT JS Layout XHTMLEXT JS 布局 XHTML
【发布时间】:2010-08-09 06:06:50
【问题描述】:

我正在尝试将 ExtJS 2.0 与 Java 富面孔集成。我正在尝试使用 Ext.Panel 获得基本布局。 所以我写了这样的代码:

Ext.onReady(function() 
{

Ext.QuickTips.init();

var myBorderPanel = new Ext.Panel(
{
renderTo: document.body,
width: 700,
height: 500,
title: 'Border Layout',
layout: 'border',
items: 
[
{
    autoLoad:{url: 'panel.html', scripts:true},
    renderTo: document.body.footer, // a div by name footer
    title: 'South Region is resizable',
    region: 'south',     // position for region
    height: 100,
    split: true,         // enable resizing
    minSize: 75,         // defaults to 50
    maxSize: 150,
    margins: '0 5 5 5'
}]
});

 });'

上面的代码工作正常。但是在上面的代码中,如果我使用 panel.xhtml 而不是 panel.html,它就不起作用了。

如果这是转发,我很抱歉。

【问题讨论】:

    标签: xhtml layout extjs


    【解决方案1】:

    我让它工作但没有使用自动加载。我使用了 contentEl,这是一个完美的选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-13
      • 2011-11-10
      • 2013-06-20
      • 1970-01-01
      • 2012-01-08
      • 2023-03-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多