Interface

FieldProperties

ui-decorators.FieldProperties

Interface for field properties including validation

Properties:
Name Type Attributes Description
name string

The name of the field

path string

The full hierarchical path of the field

childOf string

The parent path of the immediate parent field, if nested

type string

The type of the field (e.g., 'text', 'number')

value string | number | Date

The current value of the field

hidden boolean <optional>

Whether the field is hidden

disabled boolean <optional>

Whether the field is disabled

required boolean <optional>

Whether the field is required

readonly boolean <optional>

Whether the field is read-only

maxLength number <optional>

Maximum length for text fields

minLength number <optional>

Minimum length for text fields

max number | Date <optional>

Maximum value for numeric or date fields

min number | Date <optional>

Minimum value for numeric or date fields

pattern string <optional>

Regex pattern for validation

step number <optional>

Step value for numeric fields

format string <optional>

Format string for date fields

equals string <optional>

Field must equal the value of this field

diff string <optional>

Field must differ from the value of this field

lessThan string <optional>

Field must be less than this field

lessThanOrEqual string <optional>

Field must be less than or equal to this field

greaterThan string <optional>

Field must be greater than this field

greaterThanOrEqual string <optional>

Field must be greater than or equal to this field

View Source ui/types.ts, line 23