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

Add +/- buttons option for textsliders in interactive builder #379

Open
olyoberdorf opened this issue Aug 11, 2022 · 4 comments
Open

Add +/- buttons option for textsliders in interactive builder #379

olyoberdorf opened this issue Aug 11, 2022 · 4 comments

Comments

@olyoberdorf
Copy link
Contributor

Daniel suggested we have +/- buttons as an option when building the text sliders.

@DBerke
Copy link
Contributor

DBerke commented Aug 11, 2022

It'd be nice as a way to step through things; if you've got a thousand rows of data, the slider often has a minimum step size > 1, and it'd be easier than having to type in a number in the text box at each step. They might not be needed everywhere, but they shouldn't take up too much space and are a pretty common element, so shouldn't be too difficult to implement I'd imagine.

@olyoberdorf
Copy link
Contributor Author

Oh, I used step size for the branch. Maybe for integer base sliders step size should always be 1.

@olyoberdorf
Copy link
Contributor Author

Actually, do you have an example of this? The code seems to already use stepsize of 1 for integer values. i.e. what primitive/field?

@DBerke
Copy link
Contributor

DBerke commented Aug 18, 2022

Sorry, that wasn't really clear. It's not so much that the slider actually has a minimum step size > 1, as that if you've got N rows of data and a slider that's < N pixels wide, you can't really move it in increments of ±1 (so I don't really have an example). Though even if you could, it's still fiddly to grab the little slider and move it by exactly one step each time you want to move it. Basically, in my view:

  • sliders are great for rapidly jumping around where you don't care what position you land in. (You're initially exploring the data.)
  • number entry boxes are great for rapidly getting to an exact position you do care about. (You want to check something in a specific part of the data.)
  • spinner boxes are great for stepping through data easily. (You're more methodically exploring or investigating [part of] the data.)

All three have different strengths and weaknesses, but complement each other nicely, so I think having all three would provide the greatest range of use for users.

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