U
    Zf"                     @   s$   d dl mZmZ G dd deZdS )    )	Component_explicitize_argsc                       s   e Zd ZdZdgZddgZdZd Zee	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
f fdd	Z  ZS )RadioButtona  A RadioButton component.
Checklist is a component that encapsulates several checkboxes.
The values and labels of the checklist is specified in the `options`
property and the checked items are specified with the `value` property.
Each checkbox is rendered as an input / label pair. `Checklist` must be
given an `id` to work properly.

Keyword arguments:

- id (string; optional):
    The ID of this component, used to identify dash components in
    callbacks. The ID needs to be unique across all of the components
    in an app.

- className (string; optional):
    **DEPRECATED** Use `class_name` instead.  The class of the
    container (div).

- class_name (string; optional):
    The class of the container (div).

- disabled (boolean; default False):
    Disable the RadioButton.

- inputClassName (string; default ''):
    **DEPRECATED** Use `input_class_name` instead.  The class of the
    <input> checkbox element.

- inputStyle (dict; optional):
    **DEPRECATED** Use `input_style` instead.  The style of the
    <input> checkbox element.

- input_class_name (string; default ''):
    The class of the <input> checkbox element.

- input_style (dict; optional):
    The style of the <input> checkbox element.

- label (a list of or a singular dash component, string or number; optional):
    The label of the <input> element.

- labelClassName (string; default ''):
    **DEPRECATED** Use `label_class_name` instead.  CSS classes to
    apply to the <label> element for each item.

- labelStyle (dict; optional):
    **DEPRECATED** Use `label_style` instead.  Inline style arguments
    to apply to the <label> element for each item.

- label_class_name (string; default ''):
    CSS classes to apply to the <label> element for each item.

- label_id (string; optional):
    The id of the label.

- label_style (dict; optional):
    Inline style arguments to apply to the <label> element for each
    item.

- loading_state (dict; optional):
    Object that holds the loading state object coming from
    dash-renderer.

    `loading_state` is a dict with keys:

    - component_name (string; optional):
        Holds the name of the component that is loading.

    - is_loading (boolean; optional):
        Determines if the component is loading or not.

    - prop_name (string; optional):
        Holds which property is loading.

- name (string; optional):
    The name of the control, which is submitted with the form data.

- 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; optional):
    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.

- style (dict; optional):
    The style of the container (div).

- value (boolean; default False):
    The value of the input.labelchildrenZdash_bootstrap_componentsc                    s   ddddddddd	d
dddddddddddg| _ g | _ddddddddd	d
dddddddddddg| _g | _|d}t   |  fdd|D }tt| j	f | d S )Nid	className
class_namedisabledinputClassName
inputStyleinput_class_nameinput_styler   labelClassName
labelStylelabel_class_namelabel_idlabel_styleloading_statenamepersisted_propspersistencepersistence_typestylevalue_explicit_argsc                    s   i | ]}| | qS  r   ).0kZ_localsr   U/tmp/pip-unpacked-wheel-gvynaulb/dash_bootstrap_components/_components/RadioButton.py
<dictcomp>y   s      z(RadioButton.__init__.<locals>.<dictcomp>)
Z_prop_namesZ_valid_wildcard_attributesZavailable_propertiesZavailable_wildcard_propertiespoplocalsupdatesuperr   __init__)selfr   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r
   r   r   r   r   kwargsr   args	__class__r   r    r&   p   s    00

zRadioButton.__init__)__name__
__module____qualname____doc__Z_children_propsZ_base_nodes
_namespace_typer   r   	UNDEFINEDr&   __classcell__r   r   r*   r    r      s   er   N)Zdash.development.base_componentr   r   r   r   r   r   r    <module>   s   