Interface
MaterialConfig
@ng-forge/dynamic-forms-material
Configuration options for Material Design form fields.
These settings can be applied at two levels:
- Library-level: Via withMaterialFields({ ... }) - applies to all forms
- Form-level: Via defaultProps in form config - applies to a specific form
The cascade hierarchy is: Library-level → Form-level → Field-level
Signature
interface MaterialConfigProperties
| Name | Type | Description |
|---|---|---|
appearance ? | MatFormFieldAppearance | Default appearance for Material form fields |
subscriptSizing ? | SubscriptSizing | Default subscript sizing for Material form fields |
disableRipple ? | boolean | Whether to disable ripple effects by default |
color ? | ThemePalette | Default color theme for form controls (checkboxes, radios, sliders, toggles) |
labelPosition ? | "before" | "after" | Default label position for checkboxes and radios |
floatLabel ? | FloatLabelType | Default float label behavior for form fields |
hideRequiredMarker ? | boolean | Whether to hide the required marker by default |
Examples
// Library-level (in app config)
provideDynamicForms(withMaterialFields({ appearance: 'outline' }))
// Form-level (in form config)
const config: MatFormConfig = {
defaultProps: { appearance: 'fill' },
fields: [...]
};packages/dynamic-forms-material/src/lib/models/material-config.ts:25