extjs - Maintaining view instances after switiching view -
I have some sets in which I rearrange a set of components (views) in different order.
What I would like to achieve is that the same example of the scene should be presented on different layouts so that the position of the scene can be maintained.
I did something like this
Ext.define ('MyApp.view.FirstView', {extension: 'Ext.container.Container', surname: 'widget. FirstView '}); Ext.define ('MyApp.view.SecondView', {extension: 'Ext.container.Container', nickname: 'widgets.beswatch'}); Ext. Define ('MyApp.view.HboxLayout', {extension: 'Ext.container.Container', layout: {type: 'hbox', align: 'stretch'}, items: [{xtype: 'firstView'}, { Xtype: 'second view'}]}); Ext. Define ('MyApp.view.VboxLayout', {extension: 'Ext.container.Container', layout: {type: 'vbox', align: 'stretch'}, item: [{xtype: 'firstView'}, {{ Xtype: 'second view'}]}); Any help appreciated.
You can still place the removable method on the container by placing its reference and calling it Container is configured with autoDestroy: false.
Then you can see the reference of the second container along with adding or adding ways to which you can add.
Here are some links:
Comments
Post a Comment