-
Notifications
You must be signed in to change notification settings - Fork 207
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
Add posibility to reset size to it's initial state #330
Comments
Hey there @MerlijnKerklaan - feel free to create a pull request that includes tests and I will look at merging it. |
The main issue here is what is initial state? If user moved the gutter and you update your size property - does it mean the initial state changed? If for example a new size came from outside without user interaction - does it mean the initial state changed? @beeman your thoughts on the matter? |
I think it's not something we should add to the main library, it seems to be relatively simple to implement, and doing it your own way allows you to pick where you want to store this (state/local storage/database, etc). As inspiration, you can look at this example and tweak it so you keep the 'initial' state and allow the user to restore that. Hope that helps. |
I could not find a way to reset the splitter to it's initial state. I think it would make a great addition to the angular split component to be able to reset it to it's initial state.
The text was updated successfully, but these errors were encountered: