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 value label text property #78
Conversation
Thanks for the PR! I wonder what is the use case for this? |
Interesting: Without showing the actual numbers? I'm thinking something like: slider.valueLabelFormatter.positivePrefix = "Umbrella: "
slider.valueLabelFormatter.negativePrefix = "Parasol: " (Not trying to make life difficult, just want to make sure the added complexity is really necessary.) |
I don't want to show actual numbers in my case, since the value is an output from a machine learning model, which has no actual meaning such as probability. In this case, I thought tuning the threshold intuitively by not showing actual values are more user friendly.
I agree with this thought. |
Okay, I think it may be an opportunity to generalize it a little. I put my idea in #80 - would you take a look and tell me what you think? |
Added |
@CodiumAI-Agent /review |
PR Analysis
PR Feedback
How to use
|
There is a demand to use custom text for
valueLabel
, such as below.This revision enables to set custom text by passing string array.
multiSlider.valueLabelTexts = ["value1", "value2"]
Below are the points that can be considered
valueLabelTexts
differs from the size ofvalue
, original text (which is the value) is displayed.valueLabel
to a name such asthumbLabel
, since the label will not always be a value.