Whether one input is shown and can be edited, given the current settings.

interface InputState {
    active: boolean;
    dependsOn: readonly string[];
    visible: boolean;
}

Properties

active: boolean

False while activeWhen fails, or an input it reads is hidden or inactive.

dependsOn: readonly string[]

The keys activeWhen reads, in the order it names them, for a reason naming them.

visible: boolean

False while visibleWhen fails, or an input it reads is hidden.