PDA

View Full Version : Question about "split" config in Ext.layout.container.Border



ejpoirier
16 Oct 2011, 1:34 PM
Where does the "split" config in the Ext.layout.container.Border documentation (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.layout.container.Border) come from? The documentation shows the following example:


Ext.create('Ext.panel.Panel', {
...
items: [{
title: 'South Region is resizable',
region: 'south', // position for region
xtype: 'panel',
height: 100,
split: true, // enable resizing
margins: '0 5 5 5'
},
...
});


I can't find what container or component has that config option.

skirtle
16 Oct 2011, 3:14 PM
The split option is part of border layout. It's similar to region insofar as the option is put directly on the child component. Most layouts do something similar, e.g. flex for vbox. These settings don't fit nicely into the current design of the docs and tend to rely on explanations at the top of the doc page for that layout.