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: Div

A 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:
minint or float

The minimum value of the slider.

maxint or float

The maximum value of the slider. Must be greater than min.

stepint or float, optional

Step size for the slider and number inputs. Must be positive and <= (max - min). Default is (max - min) / 10.0.

decimal_scaleint, optional

Number of decimal places displayed in the number inputs. Must be non-negative. Default is 1.

valuelist of float, optional

Initial [lower, upper] values. Both must lie in [min, max] with lower <= upper. Defaults to [min, max].

slider_propsdict, optional

Additional properties forwarded to dmc.RangeSlider. The keys min, max, step, value, and minRange are controlled by the component and will be overridden. Default style: {"width": "20%"}.

lower_bound_input_propsdict, optional

Additional properties forwarded to the lower bound dmc.NumberInput. The keys min, max, step, value, decimalScale, debounce, and clampBehavior are controlled by the component and will be overridden. Default: label "Min", variant "filled", style {"width": "15%"}.

upper_bound_input_propsdict, optional

Additional properties forwarded to the upper bound dmc.NumberInput. The keys min, max, step, value, decimalScale, debounce, and clampBehavior are controlled by the component and will be overridden. Default: label "Max", variant "filled", style {"width": "15%"}.

aio_idstr, optional

Unique identifier for this component instance. A UUID is generated when not provided.

IDs

class ansys.solutions.dash_super_components.DualInputRangeSlider.DualInputRangeSliderIds#

Bases: AIOIds

Provides 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.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the lower bound input subcomponent.

classmethod slider(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the slider component.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the slider subcomponent.

classmethod upper_bound_input(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the upper bound input component.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the upper bound input subcomponent.