-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
113 adjust toggle_slider
ranges
#315
Conversation
Merge branch 'main' of https://github.com/insightsengineering/teal.goshawk # Conflicts: # R/tm_g_gh_boxplot.R
Merge branch 'main' of https://github.com/insightsengineering/teal.goshawk # Conflicts: # R/tm_g_gh_boxplot.R
Code Coverage Summary
Diff against main
Results for commit: a54d7f2 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see the same problem.
I used the example code that's provided in this comment and changed the "Select an X-Axis Biomarker" to "CRP".
Is it because the range is too short?
What problem do you see? I would assume you show the state of Screen.Recording.2024-10-08.094314.mp4 |
Ah, ok I see. This issue is related to two things. The second thing are the ticks on slider that are non-unique. Will have a look at it as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
As discussed, we'll address the tick issue with a different PR.
This is solution for #133
toggle_slider
is a component that is a sliderInput that can be toggled to become a numericInput.The PR fixes the issue with ranges on sliderInput that should be adjusted based on numericInput.
So if slider had ranges min_sliderInput and max_sliderInput and values for numercInput are changed, so that min(numercInput) is lower than min_sliderInput or max(numercInput) is greater than max_sliderInput, then
min_sliderInput
ormax_sliderInput
should be extended for new ranges.Example 1
min_sliderInput, max_sliderInput - on start 0, 55
hence numericInput on start 0, 55
numericInput changes to -5, 65
sliderInput changes to -5, 65
Example 2
Continuation of the previous one, if you change numericInput from -5, 65
to 4, 45
sliderInput is reset (the min and max) to original 0, 55 but values are set to 4, 45