init
__all__ = ['control_area', 'control_group', 'control_item', 'render_slider']
module-attribute
control_area(heading, items)
For grouping together multiple control groups with a heading.
control_group(heading, items, mode='grid')
For grouping together multiple control items with a heading.
control_item(label, item, description=None, width=None, flex=None)
Groups together a label, item, and optional description.
render_slider(value=None, on_change=None, min_=None, max_=None, decimal_places=0, id_=None, str_labels=None, **slider_props)
My defaults for rx.slider.
| PARAMETER | DESCRIPTION |
|---|---|
value
|
Value for the slider.
TYPE:
|
on_change
|
Event handler to call when the slider value changes.
TYPE:
|
min_
|
Minimum value for the slider.
TYPE:
|
max_
|
Maximum value for the slider.
TYPE:
|
decimal_places
|
Number of decimal places to round to.
TYPE:
|
id_
|
ID for the slider.
TYPE:
|
str_labels
|
Labels to show instead of exact values.
TYPE:
|
**slider_props
|
Additional properties for the slider.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Component
|
rx.Component: A slider component. |