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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -