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

Allow typing input-values #778

Open
hillenbc opened this issue Mar 24, 2022 · 2 comments
Open

Allow typing input-values #778

hillenbc opened this issue Mar 24, 2022 · 2 comments

Comments

@hillenbc
Copy link

Sometimes the automatic grid-steps are too wide apart, so that the graphic input-selection is not sufficient.
It would be a nice enhancement to allow typing the input-numbers, e.g. activate input-field by clicking on the input numbers like it is available in Spotfire.

@StenLeinasaar
Copy link

First, you can set the grid to false so there are no default steps, or you can set steps to be specific values yourself. This is highly customizable.

With callback functions, you can make some random boxes update their value when the slider is updated. I used the onChange callback function that they have.

In terms of updating a slider when input is manually set, that requires some more function calls and setting JS variables, but it is also doable. You could set a global variable and use this to set the to and from value. Then update those values with callbacks and that way you can update them when the user inputs some value as well.

I hope that helps.

@hillenbc
Copy link
Author

Hi @StenLeinasaar, Thanks for your reply on this and apologies that I did not answer earlier!
But, frankly, I myself did not know how to do any of this, but I am have pointed experienced programmers to your answer, maybe it will help! Thanks again!

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