Creates a new XtBaseContext instance.
The display mode for this context
OptionalsubName: stringOptional sub-name used within a parent form group
OptionalparentGroup: FormGroup<any>Optional parent FormGroup for reactive form integration
OptionalparentContext: XtBaseContext<any>Optional parent context for hierarchy management
The current display mode for this context. Defaults to FULL_VIEW.
Computed signal that returns the current display value from non-form storage.
OptionallocallocalFormGroup exists only for composite components: it's children are all gathered in a form group
OptionalnonWhen not managed by a form, the value is here
OptionalparentWhen the context is a child, it potentially needs to update its parent value
OptionalparentThe parent FormGroup when this context is a child within a reactive form.
OptionalreferenceWhen the value in the context is a reference to another type
OptionalsubWhen editable, the value is stored in a parent formGroup
OptionalvalueThe type identifier for the value contained in this context.
Returns the context associated with a specific element in a set. Value must be an array.
Returns the sub-name used as the form control name, or null if not in a form.
The sub-name or null
Retrieves the value from the parent form group for this context's sub-name.
The form control value, or undefined if not in a form
Returns the available form group, preferring localFormGroup over parentFormGroup.
The form group or undefined
Checks whether this context is bound to a reactive form group.
True if a form group exists
Checks whether this context holds a reference to another type.
True if a reference is set
Sets the display value for this context when not managed by a reactive form. Propagates changes to child contexts and optionally notifies the parent context.
The new value to set
Optionaltype: stringOptional type identifier to assign
Whether to propagate the change to the parent context (default true)
This context instance for chaining
Sets the value in the parent form group for this context's sub-name.
The new value to set on the form control
Whether to mark the control as dirty (default false)
True if the value was successfully set
Sets the type reference information for this context.
The type reference to set
Returns or creates a child context for the given sub-name. Resolves type information and references when a typeResolver is provided.
The sub-name for the child context
OptionalsubType: stringOptional type hint for the child
OptionaltypeResolver: XtTypeResolver | nullOptional type resolver for resolving sub-types and references
The child XtContext
Returns a sub-value by name from the current value object.
OptionalsubsubName: stringOptional sub-key to retrieve from the value object
The sub-value or the full value if no key is given
Returns a string representation of this context, including its name, type, value, and reference info.
A human-readable description of the context
Returns the current value from either the non-form signal or the form control.
The current value, or null/undefined
Base implementation of the XtContext interface. Manages display mode, form integration, child context hierarchy, and value tracking for an ng-extended component.