@serenity-is/corelib / PropertyCondition
Interface: PropertyCondition
Defined in: src/base/propertyitem.ts:39
A condition on the value of another field of a form, which a field is shown, made read only or required by, see PropertyItem.visibleWhen, PropertyItem.readOnlyWhen and PropertyItem.requiredWhen.
Properties
field
field:
string
Defined in: src/base/propertyitem.ts:41
The name of the field whose value is checked.
isNot?
optionalisNot:boolean
Defined in: src/base/propertyitem.ts:49
Whether the condition is the opposite, e.g. met when the field has none of the values, or has no value.
values?
optionalvalues:any[]
Defined in: src/base/propertyitem.ts:47
The values that meet the condition, any of which the field can have, compared as text, e.g. 2 and "2", and
a list value matches when any of its items does. Without values, the condition is met when the field has a value,
i.e. one that is not null, an empty string, an empty list or false.