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

Persist and restore resized size #30

Open
novecento opened this issue Sep 16, 2020 · 1 comment
Open

Persist and restore resized size #30

novecento opened this issue Sep 16, 2020 · 1 comment

Comments

@novecento
Copy link

Hi, it could be possible to save new size chosen by user, and restore it when user reenter on website?
Thanks

@PeterVri
Copy link

PeterVri commented Feb 18, 2021

@novecento, the option is already there.

1 in <multipane @paneResizeStop="storePaneWidths" >
2 then a method that stores the width % in localstorage or db
storePaneWidths (pane, resizer, size) {
localStorage.widthofthediv = size
}
3 have the width like this :style="{width: this.widthofthediv, maxWidth: '70%'}"
4 in mounted, load the width from localstorage or db to widthofthediv

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

2 participants