Describes the behavior of data fields.

required is mutually exclusive with optional.

visible, editable, hidden and forbidden are mutually exclusive with each other.

interface Behavior {
    editable?: boolean;
    forbidden?: boolean;
    hidden?: boolean;
    optional?: boolean;
    required?: boolean;
    visible?: boolean;
}

Properties

editable?: boolean

The value of the data field can be changed. Data field Components that render such field are set to enabled.

forbidden?: boolean

Forbidden implies that information about this datafield should not be sent to frontend. Fields with this behavior set to true can be only received in the ChangedFields object, when a field that wasn't previously marked as forbidden had it's behavior changed.

hidden?: boolean

Information about the data field should not be displayed to the user. Data field Components that render such field are removed from DOM.

optional?: boolean

Opposite of required.

See [required]Behavior#required.

required?: boolean

The data field's value must be filled and valid in order to finish a task.

visible?: boolean

The data field's value is visible to the user, but they cannot change it. Data field Components that render such field are set to disabled.