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: Set initial value of laps #14

Open
bremington opened this issue Aug 30, 2019 · 2 comments
Open

Feature request: Set initial value of laps #14

bremington opened this issue Aug 30, 2019 · 2 comments

Comments

@bremington
Copy link

Hi David, great package! Can you please add the ability to set an initial lap value? I am using your slider to create values, lets say in increments of 200, and saving both the total value and the laps. If the value is 500, I would have laps = 2, and the slider would be at 50%. When I initialize the slider at another time, I want the slider to know that the lap count is 2...not 0. So when I decrement the slider it allows me to reset the value from 500 back to 0. Without a lap initialized, I cannot decrement back to 0. Thank you!

@bremington
Copy link
Author

Actually, I worked on your code and was able to define an initial value to the laps and also to set a max limit on the laps. What I would like to see now, but not sure how to do is to increment the base color to brighter saturation with each lap (i.e set laps to 5 and with each lap the color gets 20% brighter.

@silversquall
Copy link

@bremington can you share your findings regarding setting the initial laps value ? thank you.

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