Open Ash-Woods opened 2 months ago
This is an interesting use-case for the slider, thanks for filing this!
I would propose that the Slider accept some props like this:
<Slider
title="Median Days"
name=days_slider
data={max_flow_time_median_days}
min=0
maxColumn=max_value
defaultValue=max_value
/>
This ties it to a query, and makes it a little more intuitive to update the defaultValue
after the slider has already been rendered (and potentially interacted with).
Thanks @ItsMeBrianD , that sounds great!
Suggested alternative approach- make the default value reactive to changes in the values that are passed to it.
fixed #2672
Describe the bug
I am attempting to pass a dynamic defaultValue on a Slider so that users can adjust the value as needed from a more configurable position, rather than solely starting at 0. I am using the below code:
and it continues to default at 0.
Steps to Reproduce
Create the query, then create the Slider. Once complete, load the page in dev mode and it navigate to the rendered component on the screen.
Logs
No response
System Info
Severity
annoyance
Additional Information, or Workarounds
No response