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

Option to save selection to local storage #336

Closed
77656233 opened this issue Aug 28, 2022 · 3 comments
Closed

Option to save selection to local storage #336

77656233 opened this issue Aug 28, 2022 · 3 comments

Comments

@77656233
Copy link

Is there a way to save the selection to local storage and reload it after page load?

@Zenoo
Copy link
Collaborator

Zenoo commented Aug 28, 2022

You can simply store the selection in the localStorage yourself,check it on page load, and load sumoselect with these options selected. This is already possible.

@Zenoo Zenoo closed this as completed Aug 28, 2022
@77656233
Copy link
Author

Okay, will try that :) thank you. What option do i need to use to load the selected?

@Zenoo
Copy link
Collaborator

Zenoo commented Aug 29, 2022

Simply call .sumoselect on your select with your options already selected

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