Skip to main content

SwitchControlDefinition

An on and off choice. Its value is the string true or false.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { SwitchControlDefinition } from "@mapcairn/core";

interface SwitchControlDefinition extends ControlBase

Properties​

default​

readonly default: boolean;

Whether it starts on.

kind​

readonly kind: "switch";

Tells a switch from the other control kinds.

See also​

Source: packages/core/src/layers/definition.ts:89