VisiOmatic web client

Class

FlipsSwitch

Extends
  • leaflet.Evented

new FlipsSwitch(parent, optionsopt) → {FlipSwitch}

Create a new flip switch widget.

Parameters

  • parent object

    Parent element.

  • options object <optional>

    Options.

    Properties

    • title string <optional>
      'Click to switch'

      Title of the control.

    • checked boolean <optional>
      false

      Switch activated at creation?

    • className string <optional>

      Element class name for the widget.

Returns

  • FlipSwitch

    Flip switch widget element.

Source

Methods

static

value(valopt) → {boolean}

Return or set the flip switch status.

Parameters

  • val boolean <optional>

    If provided, set the flip switch (boolean) value to that of val.

Returns

  • boolean

    Flip switch status.

Source