interface FieldChange<Value> {
    causedAnUnmask: boolean;
    field: string;
    isDefault: boolean;
    mask: boolean;
    unmask: boolean;
    value: {
        new?: Value;
        old?: Value;
    };
}

Type Parameters

Properties

causedAnUnmask: boolean

Returns whether the change of the field value caused an unmask, as distinct from an unmask() call.

field: string

The field where the change occurred.

isDefault: boolean

Returns whether the field was changed when setting a control's default value.

mask: boolean

Returns whether the field was previously unmasked, and is now masked after the field value was updated.

unmask: boolean

Returns whether the field was previously masked, and is now masked after the field value was updated.

value: {
    new?: Value;
    old?: Value;
}

The field values before and after the change. The new and old parameters are optional.