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] Sliders, start values #4

Open
meilon opened this issue Mar 31, 2013 · 6 comments
Open

[Feature Request] Sliders, start values #4

meilon opened this issue Mar 31, 2013 · 6 comments

Comments

@meilon
Copy link

meilon commented Mar 31, 2013

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?

@rgegriff
Copy link

rgegriff commented Apr 2, 2013

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.

@meilon
Copy link
Author

meilon commented Apr 2, 2013

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?

@rgegriff
Copy link

rgegriff commented Apr 2, 2013

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.

@meilon
Copy link
Author

meilon commented Apr 5, 2013

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.
I hope your patch comes soon!

A little offtopic but I don't where else to ask:
How do I make a list for just selecting a value, like a list of presets. Generating the list with an item with a chevron linking to another page is easy, but how do I make the preset list work? It should look like the list for selecting a ringtone on an iPhone.

@groliffe
Copy link

Hi, tekromancer, did you get anywhere with the patch you were doing?

@rgegriff
Copy link

I did, but I managed to fry my pi back in may and I haven't had the funds
to get a new one.

On Sun, Jun 16, 2013 at 1:35 AM, groliffe notifications@github.com wrote:

Hi, tekromancer, did you get anywhere with the patch you were doing?


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-19508594
.

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

3 participants