I have a few set of layouts in which the I rearrange a set of components (views) in different order.
What I would like to achieve is that the same instance of the view should be rendered on different layouts so that the state of the view is maintained.
I have done something similar
Ext.define('MyApp.view.FirstView',{
extend:'Ext.container.Container',
alias:'widget.firstView'
});
Ext.define('MyApp.view.SecondView',{
extend:'Ext.container.Container',
alias:'widget.secondView'
});
Ext.define('MyApp.view.HboxLayout',{
extend:'Ext.container.Container',
layout:{ type:'hbox',align:'stretch'},
items:[
{ xtype:'firstView'},
{xtype:'secondView'}]
});
Ext.define('MyApp.view.VboxLayout',{
extend:'Ext.container.Container',
layout:{ type:'vbox',align:'stretch'},
items:[
{ xtype:'firstView'},
{xtype:'secondView'}]
});
Any help appreciated.