svelte-splitpanes icon indicating copy to clipboard operation
svelte-splitpanes copied to clipboard

Store splitter state in localstorage

Open reformstudios opened this issue 1 year ago • 3 comments

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

reformstudios avatar Aug 25 '24 13:08 reformstudios

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

orefalo avatar Aug 30 '24 04:08 orefalo

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

reformstudios avatar Aug 30 '24 14:08 reformstudios

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 avatar Sep 01 '24 17:09 orefalo

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

orefalo avatar Sep 24 '24 16:09 orefalo