• options (list with values of type: record with the fields: 'label: string | number (required)', 'value: string | number (required)', 'disabled: boolean (optional)', 'title: string (optional)') - An array of options {label: [string|number], value: [string|number]}, an optional disabled field can be used for each option • value (string | number | list with values of type: string | number) - The value of the input. If `multi` is false (the default) then value is just a string that corresponds to the values provided in the `options` property. If `multi` is true, then multiple values can be selected at once, and `value` is an array of items with values corresponding to those in the `options` prop. • optionHeight (number; default 35) - height of each option. Can be increased when label lengths would wrap around • className (string) - className of the dropdown element • clearable (boolean; default true) - Whether or not the dropdown is "clearable", that is, whether or not a small "x" appears on the right of the dropdown that removes the selected value. • disabled (boolean; default false) - If true, this dropdown is disabled and the selection cannot be changed. • multi (boolean; default false) - If true, the user can select multiple values • placeholder (string) - The grey, default text shown when no option is selected • searchable (boolean; default true) - Whether to enable the searching feature or not • search_value (string) - The value typed in the DropDown for searching. • style (record) - Defines CSS styles which will override styles previously set. • loading_state (record with the fields: 'is_loading: boolean (optional)', 'prop_name: string (optional)', 'component_name: string (optional)') - Object that holds the loading state object coming from dash-renderer • persistence (boolean | string | number) - Used to allow user interactions in this component to be persisted when the component - or the page - is refreshed. If `persisted` is truthy and hasn't changed from its previous value, a `value` that the user has changed while using the app will keep that change, as long as the new `value` also matches what was given originally. Used in conjunction with `persistence_type`. • persisted_props (list with values of type: value equal to: 'value'; default ['value']) - Properties whose user interactions will persist after refreshing the component or the page. Since only `value` is allowed this prop can normally be ignored. • persistence_type (value equal to: 'local', 'session', 'memory'; default local) - Where persisted user changes will be stored: memory: only kept in memory, reset on page refresh. local: window.localStorage, data is kept after the browser quit. session: window.sessionStorage, data is cleared once the browser quit.
Union case | Description |
Full Usage:
ClassName string
Parameters:
string
|
|
Full Usage:
Clearable bool
Parameters:
bool
|
|
Full Usage:
Disabled bool
Parameters:
bool
|
|
|
|
Full Usage:
Multi bool
Parameters:
bool
|
|
Full Usage:
OptionHeight float
Parameters:
float
|
|
|
|
Full Usage:
PersistedProps string[]
Parameters:
string[]
|
|
|
|
|
|
Full Usage:
Placeholder string
Parameters:
string
|
|
Full Usage:
SearchValue string
Parameters:
string
|
|
Full Usage:
Searchable bool
Parameters:
bool
|
|
|
|
|
|
Static member | Description |
|
|