Skip to main content

SegmentedControlDefinition

A choice of a few values, drawn as a segmented control.

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

Signature​

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

interface SegmentedControlDefinition extends ControlBase

Properties​

default​

readonly default: string;

The value of the option chosen until the person picks another.

kind​

readonly kind: "segmented";

Tells a segmented control from the other kinds.

options​

readonly options: readonly SegmentedOption[];

The choices, in the order they are drawn.

See also​

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