Type

MatDatepickerField

@ng-forge/dynamic-forms-material

Signature

type MatDatepickerField = DatepickerField<MatDatepickerProps>;

Properties

NameTypeDescription
type "datepicker"-
minDate ?string | Date-
maxDate ?string | Date-
startAt ?Date-
value ?string | Date-
placeholder ?DynamicText

Placeholder text displayed when the field is empty. Supports static strings, Observables, and Signals for dynamic content.

Note: placeholder lives at the field level, NOT inside props. The integration-layer props interfaces (InputProps, TextareaProps, SelectProps, DatepickerProps) intentionally omit placeholder — TypeScript's excess property check rejects props: { placeholder: ... } for any props literal typed against those interfaces.

required ?boolean-
nullable ?boolean

Whether the field accepts null as a valid value.

When true, value may be null and an omitted value resolves to null (rather than the type-specific empty default). Orthogonal to required.

Read-side caveat: a user clearing a text input reads back as "", not null — this matches classic Reactive Forms and is enforced by the Web IDL contract. nullable is a contract for accepted values, not a guarantee of emitted ones.

key string

Unique field identifier used for form binding and value tracking.

This key is used to associate the field with form values and must be unique within the form. It follows object property naming conventions.

label ?DynamicText

Human-readable field label displayed to users.

Provides accessible labeling for form fields and is typically displayed above or beside the field input. Supports static strings, translation keys, Observables, and Signals for dynamic content.

props ?MatDatepickerProps

Field-specific properties and configuration options.

Contains type-specific configuration that varies based on the field type. The shape is defined by the TProps generic parameter.

meta ?FieldMeta

Native HTML attributes to pass through to the underlying element.

Contains attributes that are applied directly to the native input/element. Useful for accessibility, autocomplete hints, and custom attributes. The shape is defined by the TMeta generic parameter, which extends FieldMeta.

className ?string

Additional CSS classes for custom styling.

Space-separated string of CSS class names that will be applied to the field container for custom styling.

disabled ?boolean

Whether the field is disabled and cannot be interacted with.

When true, the field is rendered in a disabled state and cannot receive user input. The value can still be modified programmatically.

@value false

readonly ?boolean

Whether the field is read-only.

When true, the field displays its value but cannot be modified by user interaction. Differs from disabled in styling and accessibility.

@value false

hidden ?boolean

Whether the field is hidden from view.

When true, the field is not rendered in the UI but still participates in form state and validation. Useful for conditional field display.

@value false

tabIndex ?number

Tab index for keyboard navigation.

Controls the order in which fields receive focus when navigating with the Tab key. Follows standard HTML tabindex behavior.

excludeValueIfHidden ?boolean

Whether to exclude this field's value from submission output when hidden.

Overrides both the global withValueExclusionDefaults() and form-level FormOptions settings.

excludeValueIfDisabled ?boolean

Whether to exclude this field's value from submission output when disabled.

Overrides both the global withValueExclusionDefaults() and form-level FormOptions settings.

excludeValueIfReadonly ?boolean

Whether to exclude this field's value from submission output when readonly.

Overrides both the global withValueExclusionDefaults() and form-level FormOptions settings.

col ?number

Column sizing configuration for responsive grid layout.

Specifies how many columns this field should span in a 12-column grid system. Supports responsive behavior and field arrangement.

wrappers ?readonly WrapperConfig[]

Wrapper components to chain around this field.

- undefined — inherit auto-associations + form defaults. - null — render bare (see skipAuto/skipDefaults for partial opt-out). - readonly WrapperConfig[] — merged innermost with auto + defaults. - [] is not an opt-out; inherits like undefined.

skipAutoWrappers ?boolean

Skip the auto-association layer (WrapperTypeDefinition.types) while keeping form-level defaults and any field-level wrappers. Use when a global wrapper auto-applies to this field type but isn't wanted here.

skipDefaultWrappers ?boolean

Skip the form-level defaultWrappers layer while keeping auto-associations and any field-level wrappers.

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[]-