ControlCondition
Makes a control usable only while another control has one of some values, such as "Include smaller earthquakes" only for the hour and the day. A disabled control keeps its value but shows as unavailable.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { ControlCondition } from "@mapcairn/core";
interface ControlCondition
Properties
control
readonly control: string;
The id of the control to watch, in the same layer.
in
readonly in: readonly string[];
The values of that control that enable this one.