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
    555
    Vote Rating
    24
    estesbubba will become famous soon enough 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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi