API reference
Autocomplete
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 autocomplete box. Can be a list of strings or integers
value (string | integer): Selected option for the autocomplete box
label (string): Label for the autocomplete box
multiple (boolean): Determines if multiple selections are allowed
clearable (boolean): Determines if the autocomplete box has a clearable option
disabled (boolean): Determines if the autocomplete box is disabled
readonly (boolean): Determines if the autocomplete box is read-only
color (string): Color of the autocomplete component. Can be custom or standard Material color
Example Usage
import zero_true as zt
sample_autocomplete = zt.Autocomplete(
id = 'sample_autocomplete', # Unique id for a component
items = [], # Options for the autocomplete box. Can be a list of strings or integers
value = '', # Selected option for the autocomplete box
label = '', # Label for the autocomplete box
multiple = False, # Determines if multiple selections are allowed
clearable = True, # Determines if the autocomplete box has a clearable option
disabled = False, # Determines if the autocomplete box is disabled
readonly = False, # Determines if the autocomplete box is read-only
color = 'primary', # Color of the autocomplete component. Can be custom or standard Material color
)