# AUTO GENERATED FILE - DO NOT EDIT

from dash.development.base_component import Component, _explicitize_args


class Select(Component):
    """A Select component.
Select is a dash wrapper for the html select tag.

Keyword arguments:

- id (string; required):
    The ID used to identify this component in Dash callbacks.

- className (string; default ""):
    Appends a class to the select tag.

- debounce_time_ms (number; default 0):
    Debounce time for props update for user. The value prop for
    selected values for Dash callbacks are debounced with the
    configured number of milliseconds.

- multi (boolean; default True):
    If True, the user can select multiple values.

- options (list of dicts; optional):
    An array of options {label: [string|number], value:
    [string|number]}, an optional disabled field can be used for each
    option.

    `options` is a list of dicts with keys:

    - label (string | number; required):
        The dropdown's label.

    - value (string | number; required):
        The value of the dropdown. This value corresponds to the items
        specified in the `value` property.

- parent_className (string; default ""):
    Appends a class to the wrapping div.

- parent_style (dict; optional):
    Appends inline styles to the wrapping div.

- persisted_props (list of a value equal to: "value"s; 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 (boolean | string | number; default False):
    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`.

- persistence_type (a 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.

- size (number; default 4):
    The number of visible options.

- style (dict; optional):
    Appends styles to the select tag.

- value (string | number | list of string | numbers; optional):
    The value of the input. If `multi` is False 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."""
    _children_props = []
    _base_nodes = ['children']
    _namespace = 'plumage_dash_components'
    _type = 'Select'
    @_explicitize_args
    def __init__(self, id=Component.REQUIRED, size=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, debounce_time_ms=Component.UNDEFINED, multi=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, parent_className=Component.UNDEFINED, parent_style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
        self._prop_names = ['id', 'className', 'debounce_time_ms', 'multi', 'options', 'parent_className', 'parent_style', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
        self._valid_wildcard_attributes =            []
        self.available_properties = ['id', 'className', 'debounce_time_ms', 'multi', 'options', 'parent_className', 'parent_style', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
        self.available_wildcard_properties =            []
        _explicit_args = kwargs.pop('_explicit_args')
        _locals = locals()
        _locals.update(kwargs)  # For wildcard attrs and excess named props
        args = {k: _locals[k] for k in _explicit_args}

        for k in ['id']:
            if k not in args:
                raise TypeError(
                    'Required argument `' + k + '` was not specified.')

        super(Select, self).__init__(**args)
