Skip to main content

ControlBase

The fields every layer control has, whatever its kind.

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

Signature​

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

interface ControlBase

Properties​

description​

readonly description?: DefinitionText;

Optional one-line help under the control.

enabledWhen​

readonly enabledWhen?: ControlCondition;

Makes the control usable only while another control has one of some values.

id​

readonly id: string;

Unique inside the layer. Lowercase letters, digits and hyphens, starting with a letter.

label​

readonly label: DefinitionText;

The control's name, shown beside it.

See also​

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