Optionaloptions: GridOffsetsFieldOptionsOptions which configure the behavior of the field
Optionalcontext: DataFieldContextAdditional context which describes the field
The data type of each element in this array
InternalnameThe field name of this DataField instance. This is assigned by SchemaField#initialize.
The initially provided options which configure the data field
InternalparentA reference to the parent schema to which this DataField belongs. This is assigned by SchemaField#initialize.
Is a value of this field written to source data? A Non-persisted value is initialized (with its initial value), and ActiveEffects can use the field for change application.
StatichierarchicalWhether this field defines part of a Document/Embedded Document hierarchy.
StaticrecursiveA dot-separated string representation of the field path within the parent schema.
Static_Default parameters for this field type
StatichasDoes this form field class have defined form support?
When cleaning an ArrayField we must force {partial: false} since arrays are always fully replaced. We take care to preserve the provided array reference, cleaning its elements rather than replacing the array.
Commit array field changes by replacing array contents while preserving the array reference itself.
Apply an ActiveEffectChange to this field.
The field's current value.
The model instance.
The change to apply.
Additional options to configure the change application.
OptionalreplacementData?: Record<string, unknown>Data used to resolve "@" expressions.
The updated value.
Preprocess and clean source data to ensure that it conforms to the correct data type for this field and is ready to be used by data model construction or update operations. Data cleaning is synchronous and automatically applied as the first step of construction and update operations.
An initial requested value
Optionaloptions: Readonly<DataModelCleaningOptions> = {}Additional options for how the field is cleaned
Optional_state: data.types.DataModelUpdateState = {}Internal state variables which are used during recursion
The cleaned value
Render this DataField as a standardized form-group element.
Configuration options passed to the wrapping form-group
Input element configuration options passed to DataField#toInput
The rendered form group element
Render this DataField as an HTML element.
Form element configuration parameters
A rendered HTMLElement for the field
Validate candidate input for this field, ensuring it meets the field requirements.
This public method validates recursively, testing both the immediate value of this field as well as the validity of any child values for fields with hierarchical data types.
The candidate value to validate
Optionaloptions: DataFieldValidationOptions = {}Options which affect validation behavior
A failure that occurred if validation is non-strict. The failure may have been resolved by fallback or dropping invalid elements.
Iterate over validation functions applied to this field. Validation happens in a depth-first way, for example consider an outerSchema with an innerField:
Protected_ProtectedApply a custom change to this field.
The field's current value.
The change delta.
The model instance.
The original change data.
The updated value.
Protected_ProtectedApply a "downgrade" change to this field.
The field's current value.
The change delta.
The model instance.
The original change data.
The updated value.
Protected_ProtectedApply a "multiply" change to this field.
The field's current value.
The change delta.
The model instance.
The original change data.
The updated value.
Protected_ProtectedApply an "override" change to this field.
The field's current value.
The change delta.
The model instance.
The original change data.
The updated value.
Protected_ProtectedApply an "upgrade" change to this field.
The field's current value.
The change delta.
The model instance.
The original change data.
The updated value.
Protected_ProtectedClean data for an individual element in the ArrayField.
Unclean data for the array entry
Options which control how data is cleaned
State used during data cleaning
Cleaned data for the array entry
Protected_ProtectedMigrate this field's candidate source data. This workflow occurs as a component step of DataField#clean.
Candidate source value for the field
Optionaloptions: Readonly<DataModelCleaningOptions>Options for how the field is cleaned
Optional_state: data.types.DataModelUpdateStateInternal state variables transacted during cleaning recursion.
A migrated value suitable for cleaning
Protected_ProtectedRecursively replace data references in a string change value.
An object providing replacements
Optionaloptions: { strict?: boolean } = {}Additional options to configure the data replacement
Optionalstrict?: booleanThrow an Error if data replacement fails
The expression with data references resolved
Protected_ProtectedSpecial validation rules which supersede regular field validation. This validator screens for certain values which are otherwise incompatible with this field like null or undefined.
The candidate value
A boolean to indicate with certainty whether the value is valid
Static_Protected Static_
The field of an array/set of grid offsets.