Dropdown.Prop Type

• 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 cases

Union case Description

ClassName string

Full Usage: ClassName string

Parameters:
    Item : string

Item : string

Clearable bool

Full Usage: Clearable bool

Parameters:
    Item : bool

Item : bool

Disabled bool

Full Usage: Disabled bool

Parameters:
    Item : bool

Item : bool

LoadingState LoadingState

Full Usage: LoadingState LoadingState

Parameters:
Item : LoadingState

Multi bool

Full Usage: Multi bool

Parameters:
    Item : bool

Item : bool

OptionHeight float

Full Usage: OptionHeight float

Parameters:
    Item : float

Item : float

Options seq<DropdownOption>

Full Usage: Options seq<DropdownOption>

Parameters:
Item : seq<DropdownOption>

PersistedProps string[]

Full Usage: PersistedProps string[]

Parameters:
    Item : string[]

Item : string[]

Persistence IConvertible

Full Usage: Persistence IConvertible

Parameters:
Item : IConvertible
Item : PersistenceTypeOptions

Placeholder string

Full Usage: Placeholder string

Parameters:
    Item : string

Item : string

SearchValue string

Full Usage: SearchValue string

Parameters:
    Item : string

Item : string

Searchable bool

Full Usage: Searchable bool

Parameters:
    Item : bool

Item : bool
Item : DashComponentStyle

Value DropdownValue

Full Usage: Value DropdownValue

Parameters:
Item : DropdownValue

Static members

Static member Description

Prop.toDynamicMemberDef prop

Full Usage: Prop.toDynamicMemberDef prop

Parameters:
Returns: string * obj
prop : Prop
Returns: string * obj