ExtJS hbox可拖动垂直线

Axi*_*mer 2 javascript containers extjs hbox

在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
  }]
});
Run Code Online (Sandbox Code Playgroud)

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

谢谢您的帮助!

Gre*_*ake 5

您正在寻找Splitter.在您的面板之间添加:

{xtype: 'splitter'}
Run Code Online (Sandbox Code Playgroud)

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