Open Pioneer Trails Packages
    Preparing search index...

    Form template using a custom rendering function.

    Provides complete control over form rendering by allowing you to supply a custom React component. Use this when you need advanced form layouts, custom validation logic, or specialized UI components that cannot be expressed through declarative field configurations.

    The render function should use PropertyFormContext to read and update feature properties.

    interface DynamicFormTemplate {
        kind: "dynamic";
        name?: string;
        renderForm: () => ReactNode;
    }
    Index

    Properties

    Properties

    kind: "dynamic"

    Identifies this as a dynamic form template.

    name?: string

    Optional header text displayed in the editor component.

    When provided, this name is shown as a header above the form. If undefined, a default header will be used.

    renderForm: () => ReactNode

    Function that renders the custom form content.

    Should return a React element representing the form UI. The function can use React hooks and PropertyFormContext to interact with feature properties.