Interface

FieldWithValidation

@ng-forge/dynamic-forms

Signature

interface FieldWithValidation

Properties

NameTypeDescription
required ?boolean-
email ?boolean-
min ?number-
max ?number-
minLength ?number-
maxLength ?number-
pattern ?string | RegExp-
validators ?ValidatorConfig[]-
validationMessages ?ValidationMessages-
logic ?LogicConfig[]-
derivation ?string

Shorthand for simple computed/derived fields.

The expression is evaluated whenever its dependencies change, and the result is set as this field's value.

Has access to formValue object containing all form values. Uses the same secure AST-based parser as other expressions.

For conditional derivations or derivations targeting other fields, use the full logic array with { type: 'derivation', ... }.

schemas ?SchemaApplicationConfig[]-