zorab47 / active_admin-sortable_tree

Show ActiveAdmin index as a nested tree with drag'n'drop
MIT License
163 stars 127 forks source link

Keep track of what branch was expanded #98

Open lapwil opened 1 year ago

lapwil commented 1 year ago

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

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