API reference
Slider
Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
zero_true.Slider
Zero True Component
id (string): Unique id for a component
value (integer | float): Current value of the slider
min (integer | float): Minimum value of the slider
max (integer | float): Maximum value of the slider
step (integer | float): Step increment of the slider
thumb_label (string): Displays the thumb label
thumb_size (integer): Size of the thumb
tick_labels (string): When to display tick_labels
ticks (list): Value of tick labels
color (string): Color of the range slider. Can be custom or standard Material color
size (string): Size of the slider
label (string): A label for your slider
rounded (boolean): Determines if the slider has rounded edges
Example Usage
import zero_true as zt
sample_slider = zt.Slider(
id = 'sample_slider', # Unique id for a component
value = 0, # Current value of the slider
min = 0, # Minimum value of the slider
max = 100, # Maximum value of the slider
step = 1, # Step increment of the slider
thumb_label = 'always', # Displays the thumb label
thumb_size = 0, # Size of the thumb
tick_labels = 'always', # When to display tick_labels
ticks = [], # Value of tick labels
color = 'primary', # Color of the range slider. Can be custom or standard Material color
size = 'large', # Size of the slider
label = None, # A label for your slider
rounded = True, # Determines if the slider has rounded edges
)