MatCheckboxField
@ng-forge/dynamic-forms-material
Signature
type MatCheckboxField = CheckboxField<MatCheckboxProps>;Properties
| Name | Type | Description |
|---|---|---|
type | "checkbox" | - |
value ? | boolean | null | undefined | - |
placeholder ? | DynamicText | undefined | Placeholder text displayed when the field is empty. Supports static strings, Observables, and Signals for dynamic content. |
required ? | boolean | undefined | - |
nullable ? | boolean | undefined | Whether the field accepts When The data model is decoupled from the UI: a null value is a legitimate
"undecided" state at the storage / OpenAPI layer. Whether the rendered
checkbox shows an indeterminate visual is controlled separately via
|
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 | undefined | 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 ? | MatCheckboxProps | undefined | 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 | undefined | 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 | undefined | 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 | undefined | 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 | undefined | 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 | undefined | Whether the field is hidden from view. When true, the field is not rendered in the UI. By default, validators on
a hidden field are skipped — set {@link validateWhenHidden} to @value false |
tabIndex ? | number | undefined | 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 | undefined | Whether to exclude this field's value from submission output when hidden. Overrides both the global |
excludeValueIfDisabled ? | boolean | undefined | Whether to exclude this field's value from submission output when disabled. Overrides both the global |
excludeValueIfReadonly ? | boolean | undefined | Whether to exclude this field's value from submission output when readonly. Overrides both the global |
validateWhenHidden ? | boolean | undefined | Whether to run validation when this field is hidden — statically ( When Inherited from the parent field — once a field overrides this value, all of its
descendants inherit the new value unless they override in turn. Form-level
|
col ? | number | undefined | 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[] | null | undefined | Wrapper components to chain around this field. - |
skipAutoWrappers ? | boolean | undefined | Skip the auto-association layer ( |
skipDefaultWrappers ? | boolean | undefined | Skip the form-level |
addons ? | readonly AnyAddon[] | undefined | Addons rendered inside this field's slots (typically Each addon declares its kind, slot, and kind-specific configuration.
Whether a field type accepts addons — and which slots / kinds — is
declared at registration via |
email ? | boolean | undefined | - |
min ? | number | undefined | - |
max ? | number | undefined | - |
minLength ? | number | undefined | - |
maxLength ? | number | undefined | - |
pattern ? | string | RegExp | undefined | - |
validators ? | ValidatorConfig[] | undefined | - |
validationMessages ? | ValidationMessages | undefined | - |
logic ? | LogicConfig[] | undefined | - |
derivation ? | string | undefined | 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 For conditional derivations or derivations targeting other fields,
use the full |
schemas ? | SchemaApplicationConfig[] | undefined | - |
packages/dynamic-forms-material/src/lib/fields/checkbox/mat-checkbox.type.ts:13