# AUTO GENERATED FILE - DO NOT EDIT

from dash.development.base_component import Component, _explicitize_args


class ScaleControl(Component):
    """A ScaleControl component.
ScaleControl is a wrapper of ScaleControl in react-leaflet.
It takes similar properties to its react-leaflet counterpart.

Keyword arguments:

- children (a list of or a singular dash component, string or number; optional):
    The children of this component (dynamic).

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

- className (string; optional):
    A custom class name to assign to the image. Empty by default.

- imperial (boolean; optional):
    Imperial scale or not.

- maxWidth (number; optional):
    Control maxWidth.

- metric (boolean; optional):
    Metric scale or not.

- position (a value equal to: 'topleft', 'topright', 'bottomleft', 'bottomright'; optional):
    Position.

- updateWhenIdle (boolean; optional):
    Update when idle or not."""
    _children_props = []
    _base_nodes = ['children']
    _namespace = 'dl_test'
    _type = 'ScaleControl'
    @_explicitize_args
    def __init__(self, children=None, position=Component.UNDEFINED, imperial=Component.UNDEFINED, metric=Component.UNDEFINED, updateWhenIdle=Component.UNDEFINED, maxWidth=Component.UNDEFINED, className=Component.UNDEFINED, id=Component.UNDEFINED, **kwargs):
        self._prop_names = ['children', 'id', 'className', 'imperial', 'maxWidth', 'metric', 'position', 'updateWhenIdle']
        self._valid_wildcard_attributes =            []
        self.available_properties = ['children', 'id', 'className', 'imperial', 'maxWidth', 'metric', 'position', 'updateWhenIdle']
        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 if k != 'children'}
        for k in []:
            if k not in args:
                raise TypeError(
                    'Required argument `' + k + '` was not specified.')
        super(ScaleControl, self).__init__(children=children, **args)
