orefalo / svelte-splitpanes

MIT License
360 stars 17 forks source link

Store splitter state in localstorage #98

Open reformstudios opened 3 weeks ago

reformstudios commented 3 weeks ago

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

orefalo commented 2 weeks ago

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

reformstudios commented 2 weeks ago

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

orefalo commented 2 weeks ago

evening,

directly, no indirectly yes - get the pane sizes

One of the demo actually demonstrates a similar functionality

https://orefalo.github.io/svelte-splitpanes/examples/prog-resize

hope this helps