active_admin-sortable_tree icon indicating copy to clipboard operation
active_admin-sortable_tree copied to clipboard

Keep track of what branch was expanded

Open lapwil opened this issue 2 years ago • 0 comments

Hello,

I didn't find an issue like mine and couldn't find help in the repo so I'm asking here.

I need to track what part of the tree was expanded, so that as the user goes back and forth on the index, the tree can keep the same state.

i.g

  • user expands branch A
  • user goes to the show page of branch A, item 2
  • user goes back to index and branch A is already expanded

I don't recall seeing a method that allows us to do it right now unless i'm missing something ?

My first idea would be to do it with JS and use session tokens to manipulate css classes maybe, but maybe there is something better

lapwil avatar May 16 '23 10:05 lapwil