orefalo/svelte-splitpanes

Store splitter state in localstorage

Closed this issue · 4 comments

Is it possible to get the state of the splitters so we can store the state between sessions in localstorage?

Hi,
You can get the state of the panes, not the splitter

So it's not possible to store the splitter position between sessions?

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

closing - the component provides events and APIs to implement this logic in userspace