-
Notifications
You must be signed in to change notification settings - Fork 95
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] Sliders, start values #4
Comments
You can use sliders right now, actually. Just use an input with type set to "range", I also have a branch that I am working on that adds an extra arguments to the inputs, I will make a pull request soon and hopefully @dps will integrate it. |
Thanks for the "range" tip, do you have an example for me how to catch the changed value? And how to setup a start value? Or will this be in your pull request? |
You can capture it the same way as if it was a text input. You can test that by changing the input on line 43(?) of the demo to "range". As for the start value, what's needed is a way to set the "value", "min", "max", and "step" arguments of the input element. That is what my patch is going to address. I would work on it now, but I am hella tired. |
Thanks for your help, I really appreciate this! I hoped there was a way like with the toggles (directly after I change a value, the server gets notified and I could do stuff with the new value) but until this item gets an event handler I added a button to send those values. A little offtopic but I don't where else to ask: |
Hi, tekromancer, did you get anywhere with the patch you were doing? |
I did, but I managed to fry my pi back in may and I haven't had the funds On Sun, Jun 16, 2013 at 1:35 AM, groliffe notifications@github.com wrote:
|
Hi there,
I'm going to start a project with piui and for some settings I need sliders. Could you add them in the near future?
Also, how do I set start values for text boxes, toggles and the (hopefully soon added) sliders?
The text was updated successfully, but these errors were encountered: