1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    71
    Vote Rating
    0
    Yemi is on a distinguished road

      0  

    Default How to know which accordion panel is activated

    How to know which accordion panel is activated


    I have a panel with a leftpanel and a right panel and a toolbar on top, the leftpanel has two accordion (acc1,acc2), I have a botton on the top toolbar which needs to know which one is active, how do I achieve this ?

  2. #2
    Sencha User
    Join Date
    Jun 2013
    Posts
    71
    Vote Rating
    0
    Yemi is on a distinguished road

      0  

    Default


    Any ideas please ?

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    546
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    Have you tried debugging when switching between the accordion panels to see what properties change which you could then interrogate?

  4. #4
    Sencha User
    Join Date
    Jun 2013
    Posts
    71
    Vote Rating
    0
    Yemi is on a distinguished road

      0  

    Default


    will give it a try

  5. #5
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,355
    Vote Rating
    198
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    The parent panel with the accordion layout will have an items property which is a MixedCollection. That mixed collection has an each method which will iterate over the items so you can check properties on them. Each panel will have a collapsed property you can check for.

  6. #6
    Sencha User
    Join Date
    Jun 2013
    Posts
    71
    Vote Rating
    0
    Yemi is on a distinguished road

      0  

    Default


    Thanks Slemmon. That should work

Thread Participants: 2