Code:
Ext.define('XX.view.TransactionMain',{
extend: 'Ext.Container',
xtype: 'transmain',
alias: 'widget.transmain',
requires: [
//'XX.view.TransactionGeneralInfo'
],
config: {
title: 'Transaction Main',
navigationBar: {
hidden: true
},
layout: {
type: 'card',
animation: {
duration: 200,
easing: 'ease-out',
type: 'slide'//,
//direction: 'left'
}
},
activeItem: 0,
fullscreen: true,
items: [{
title: 'Test',
layout: 'fit',
items: [{
xtype: 'container',
scrollable: {
direction: 'vertical',
directionLock: true,
indicators: false
},
defaults: {
margin: 5
},
items: [{
xtype: 'panel',
items: [{
xtype: 'transgeninfo',
height: 350
},{
xtype: 'fieldset',
items: [{
xtype: 'button',
text: 'Step 2',
ui: 'confirm',
itemId: 'buttonNext'
}]
}]
}]
}]
},{
xtype: 'panel',
items: [{
xtype: 'transpropdetails1',
style: 'border: 1px solid red;',
height: '100%'
}]
},{
xtype: 'panel',
items: [{
xtype: 'transsales',
style: 'border: 1px solid red;',
height: '100%'
}]
},{
xtype: 'panel',
items: [{
xtype: 'translease',
style: 'border: 1px solid red;',
height: '100%'
}]
},{
xtype: 'panel',
items: [{
xtype: 'transcustomer',
style: 'border: 1px solid red;',
height: '100%'
}]
},{
xtype: 'panel',
items: [{
xtype: 'transcomm',
style: 'border: 1px solid red;',
height: '100%'
}]
}]
}
});
then in controller I call like this: