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 MaterialConfig

Properties

NameTypeDescription
appearance ?MatFormFieldAppearanceDefault appearance for Material form fields
subscriptSizing ?SubscriptSizingDefault subscript sizing for Material form fields
disableRipple ?booleanWhether to disable ripple effects by default
color ?ThemePaletteDefault color theme for form controls (checkboxes, radios, sliders, toggles)
labelPosition ?"before" | "after"Default label position for checkboxes and radios
floatLabel ?FloatLabelTypeDefault float label behavior for form fields
hideRequiredMarker ?booleanWhether 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: [...]
};