Components
Autocomplete
Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
zero_true.Autocomplete
Zero True Component
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
)