1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    shashj is on a distinguished road

      0  

    Default Getting reference to parent view

    Getting reference to parent view


    I'm creating and pushing a view with a tabpanel that contains a list onto another view. On the tap event of the list (in the controller) I want to get reference to the main view, so that I can push another view. Is there a way to do that?

  2. #2
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    71
    Vote Rating
    6
    cyee is on a distinguished road

      0  

    Default


    The first parameter that's passed in to your itemtap listener is a reference to the list itself. Call getParent() on that reference to get its parent

Thread Participants: 1

Tags for this Thread