Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Built-in localStorage for pane sizes #116

Closed
d95sld95 opened this issue Mar 2, 2021 · 2 comments
Closed

Feature request: Built-in localStorage for pane sizes #116

d95sld95 opened this issue Mar 2, 2021 · 2 comments

Comments

@d95sld95
Copy link

d95sld95 commented Mar 2, 2021

It would be great to have built-in support for localStorage so that the size of each pane is remembered once you come back to the page. Idea copied from PrimeVue.js

Stateful

Splitters can be configured as stateful so that when the user visits the page again, the adjusts sizes can be restored. Define a stateKey to enable this feature. Default location of the state is session storage and other option is the local storage which can be configured using the stateStorage property.

@posva
Copy link

posva commented Feb 9, 2024

I know this is old but FYI, I don't think this should be added to the library. It can be achieved with a few lines of code: see this Vitest UI PR

@antoniandre
Copy link
Owner

Yes, I agree it can become a problem for other use cases and should be externalized.
thanks for chiming in @posva!
and I’m glad to see my lib is in use in vitest UI 🎉
I’ll spend some time to improve a few things soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants