Optional
disabledOptional
hiddenOptional
propsAdditional custom props for the field component like: label
.
The type of form field used to edit this value.
Optional
validationA list of validation rules for this field.
Rules are AND
, so all of them must pass, for the field to be valid. Rules are
tested in order, until one fails. Fields can only display one error, so earlier
rules have priority over later ones. As a guideline, wide, general rules like
required
should come before narrower, more detailed ones, like pattern
.
validation: {type: 'number', rules: [
{type: 'required'},
{type: 'min', params: [0, 'Must be positive']},
]},
Generated using TypeDoc
Name of the property in the result data.