DualInputRangeSlider#
- class ansys.solutions.dash_super_components.DualInputRangeSlider(min: float, max: float, step: float | None = None, decimal_scale: int | None = None, value: list[float] | None = None, slider_props: dict[str, Any] | None = None, lower_bound_input_props: dict[str, Any] | None = None, upper_bound_input_props: dict[str, Any] | None = None, aio_id: str | None = None)#
Bases:
DivA Dash component combining a range slider with two number inputs for precise range control.
DualInputRangeSlider is based on the Dash All-in-One (AIO) component pattern. It provides a bidirectional interface: dragging the slider updates both number inputs, and typing into either input updates the slider. When a new lower bound would exceed the current upper bound (or vice versa), the other bound is automatically adjusted to maintain validity.
- Parameters:
- min
intorfloat The minimum value of the slider.
- max
intorfloat The maximum value of the slider. Must be greater than
min.- step
intorfloat,optional Step size for the slider and number inputs. Must be positive and
<= (max - min). Default is(max - min) / 10.0.- decimal_scale
int,optional Number of decimal places displayed in the number inputs. Must be non-negative. Default is
1.- value
listoffloat,optional Initial
[lower, upper]values. Both must lie in[min, max]withlower <= upper. Defaults to[min, max].- slider_props
dict,optional Additional properties forwarded to
dmc.RangeSlider. The keysmin,max,step,value, andminRangeare controlled by the component and will be overridden. Default style:{"width": "20%"}.- lower_bound_input_props
dict,optional Additional properties forwarded to the lower bound
dmc.NumberInput. The keysmin,max,step,value,decimalScale,debounce, andclampBehaviorare controlled by the component and will be overridden. Default: label"Min", variant"filled", style{"width": "15%"}.- upper_bound_input_props
dict,optional Additional properties forwarded to the upper bound
dmc.NumberInput. The keysmin,max,step,value,decimalScale,debounce, andclampBehaviorare controlled by the component and will be overridden. Default: label"Max", variant"filled", style{"width": "15%"}.- aio_id
str,optional Unique identifier for this component instance. A UUID is generated when not provided.
- min
IDs
- class ansys.solutions.dash_super_components.DualInputRangeSlider.DualInputRangeSliderIds#
Bases:
AIOIdsProvides IDs for the subcomponents of
DualInputRangeSlider.- classmethod lower_bound_input(aio_id: str | Wildcard) dict[str, Any]#
Return the ID for the lower bound input component.