yera.runtime.blocks.slider

Slider block implementation.

Symbols

def request_input_slider — Request a numeric value from a bounded slider.

request_input_slider

request_input_slider(
    min_value: float,
    max_value: float,
    label: str,
    default_value: float | None = None,
) → str

Request a numeric value from a bounded slider.

Parameters

min_value
type: float

Lower bound of the slider.

max_value
type: float

Upper bound of the slider.

label
type: str

Prompt shown alongside the slider.

default_value
type: float | None = None

Optional initial value.

Returns

type: str

Block ID identifying the input request.