API reference
SelectBox
Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
id (string): Unique id for a component
items (list): Options for the select box. Can be a list of strings or integers
value (list | string | integer): Selected options for the select box
label (string): Label for the select box
multiple (boolean): Determines if multiple selections are allowed
outlined (boolean): Determines if the select box has an outlined style
clearable (boolean): Determines if the select box has a clearable option
disabled (boolean): Determines if the select box is disabled
readonly (boolean): Determines if the select box is read-only
color (string): Color of the range slider. Can be custom or standard Material color
Example Usage
import zero_true as zt
sample_selectbox = zt.SelectBox(
id = 'sample_selectbox', # Unique id for a component
items = [], # Options for the select box. Can be a list of strings or integers
value = [], # Selected options for the select box
label = '', # Label for the select box
multiple = False, # Determines if multiple selections are allowed
outlined = False, # Determines if the select box has an outlined style
clearable = False, # Determines if the select box has a clearable option
disabled = False, # Determines if the select box is disabled
readonly = False, # Determines if the select box is read-only
color = 'primary', # Color of the range slider. Can be custom or standard Material color
)