1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default How to get current showed view in controller?

    How to get current showed view in controller?


    there are many views in my app, i want to get the current showed view in controller, how to do?

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    529
    Vote Rating
    17
    estesbubba will become famous soon enough

      0  

    Default


    Assuming you have a main container you could do a getMainContainer().getActiveItem(), or maybe Ext.Viewport.getActiveItem(). It depends on how your application is laid out.

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    fyghtsoft is on a distinguished road

      0  

    Default


    Using the following works for me when using a NavigationView on the pop event,
    console.log('pop from: ' + item.xtype + ' to current view item: ' + this.getMainNavView().getActiveItem().id);

    So basically in the controller this should work, this.getMainNavView().getActiveItem()

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar