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