dash_mp_components.Switch

class dash_mp_components.Switch(id: str | dict | None = None, className: str | None = None, value: bool | None = None, hasLabel: bool | None = None, truthyLabel: str | None = None, falsyLabel: str | None = None, **kwargs)[source]

Bases: Component

A Switch component. Common wrapper for filters/inputs and their labels

Keyword arguments:

  • id (string; optional)

  • className (string; optional)

  • falsyLabel (string; optional)

  • hasLabel (boolean; optional)

  • truthyLabel (string; optional)

  • value (boolean; optional)

__init__(id: str | dict | None = None, className: str | None = None, value: bool | None = None, hasLabel: bool | None = None, truthyLabel: str | None = None, falsyLabel: str | None = None, **kwargs)

Methods

__init__([id, className, value, hasLabel, ...])

to_plotly_json()

Attributes

REQUIRED

UNDEFINED

available_wildcard_properties