Results 1 to 6 of 6

Thread: How to know which accordion panel is activated

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    72
    Vote Rating
    0
      0  

    Default 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
    72
    Vote Rating
    0
      0  

    Default

    Any ideas please ?

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    549
    Vote Rating
    54
      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
    72
    Vote Rating
    0
      0  

    Default

    will give it a try

  5. #5
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Vote Rating
    257
      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
    72
    Vote Rating
    0
      0  

    Default

    Thanks Slemmon. That should work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •