Signal K
    Preparing search index...

    Control constraint describing dependencies between controls.

    interface ControlConstraint {
        condition: {
            dependsOn: string;
            operator: "==" | "!=" | ">" | "<" | ">=" | "<=";
            type: "disabled_when" | "read_only_when" | "restricted_when";
            value: string | number | boolean;
        };
        controlId: string;
        effect: {
            allowedValues?: any[];
            disabled?: boolean;
            readOnly?: boolean;
            reason?: string;
        };
    }
    Index

    Properties

    condition: {
        dependsOn: string;
        operator: "==" | "!=" | ">" | "<" | ">=" | "<=";
        type: "disabled_when" | "read_only_when" | "restricted_when";
        value: string | number | boolean;
    }

    Condition that triggers the constraint

    controlId: string

    Control ID this constraint applies to

    effect: {
        allowedValues?: any[];
        disabled?: boolean;
        readOnly?: boolean;
        reason?: string;
    }

    Effect when condition is true