@theredhead — Frontend Library - v0.2.1
    Preparing search index...

    Interface FormFieldRegistration

    Describes how a component is integrated into the form system.

    interface FormFieldRegistration {
        component: Type<unknown>;
        configTransforms?: Readonly<Record<string, ConfigTransform>>;
        defaultConfig?: Readonly<Record<string, unknown>>;
        modelProperty: string;
    }
    Index

    Properties

    component: Type<unknown>

    The Angular component class to instantiate. Must be a standalone component.

    configTransforms?: Readonly<Record<string, ConfigTransform>>

    Optional map from config keys to ConfigTransform entries.

    When a config key appears in this map, the raw JSON value is passed through the transform and set on the component input specified by inputKey instead of the config key itself.

    configTransforms: {
    textAdapter: {
    inputKey: 'adapter',
    transform: (key) => resolveTextAdapter(key as string),
    },
    }
    defaultConfig?: Readonly<Record<string, unknown>>

    Static inputs to apply by default (e.g. { type: "email" }). Merged with (overridden by) the field definition's config.

    modelProperty: string

    Name of the model signal used for two-way value binding.

    Most ui-kit components use "value". Exceptions:

    • UICheckbox → "checked"
    • UIFileUpload → "files"