2

在 ExtJS 4.2.2 中。我有一个像这样的 hbox 容器:

Ext.create('Ext.Panel', {
  width: 500,
  height: 300,
  title: "HBoxLayout Panel",
  layout: {
    type: 'hbox',
    align: 'stretch'
  },
  renderTo: document.body,
  items: [{
    xtype: 'panel',
    title: 'Inner Panel One',
    flex: 2
  },{
    xtype: 'panel',
    title: 'Inner Panel Two',
    flex: 1
  },{
    xtype: 'panel',
    title: 'Inner Panel Three',
    flex: 1
  }]
});

这只是文档中的示例。但我希望三个不同面板之间的垂直线是可拖动的,因此用户能够调整每个面板的大小。

谢谢您的帮助!

4

1 回答 1

5

您正在寻找拆分器。在您的面板之间,添加:

{xtype: 'splitter'}

示例:https ://fiddle.sencha.com/#fiddle/r4h

于 2015-07-26T10:58:15.647 回答