PDA

View Full Version : How to migrate Ext.SplitBar class from 3.3.1 to 4.2.2?



hmsinc
20 Nov 2013, 6:43 PM
We are migrating our app from Ext 3.3.1 to 4.2.2. There was a Ext.SplitBar class in 3.3.1. However this class no longer exists in Ext 4. How should we migrate this class?

Thanks

scottmartin
22 Nov 2013, 6:48 AM
Perhaps this?
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.resizer.Splitter



Ext.application({
name: 'Fiddle',

launch: function() {

Ext.create('Ext.form.Panel', {
title: 'Simple Form',
bodyPadding: 5,

width: 350,
height: 500,

layout: {
type: 'vbox',
align: 'stretch'
},

items: [
{
xtype: 'panel',
title: 'Panel One',
flex: 1
}, {
xtype: 'splitter',
resizable: true,
collapsible: true
}, {
xtype: 'panel',
title: 'Panel Two',
flex: 1
}],

renderTo: Ext.getBody()
});
}
});