Store splitter state in localstorage
Closed this issue · 4 comments
reformstudios commented
Is it possible to get the state of the splitters so we can store the state between sessions in localstorage?
orefalo commented
Hi,
You can get the state of the panes, not the splitter
reformstudios commented
So it's not possible to store the splitter position between sessions?
orefalo commented
evening,
directly, no
indirectly yes - get the pane sizes
- this is inlined with the way HTML works
One of the demo actually demonstrates a similar functionality
https://orefalo.github.io/svelte-splitpanes/examples/prog-resize
hope this helps
orefalo commented
closing - the component provides events and APIs to implement this logic in userspace