UI Component Reference - v2.63.2
    Preparing search index...

    Interface ComponentContextOptions

    interface ComponentContextOptions {
        migrateInputs?: (
            inputs: any,
            version: string | null,
        ) => { [key: string]: any };
    }
    Index

    Properties

    Properties

    migrateInputs?: (inputs: any, version: string | null) => { [key: string]: any }

    Migrate the inputs from an earlier version to the current version of the component.

    Type Declaration

      • (inputs: any, version: string | null): { [key: string]: any }
      • Parameters

        • inputs: any

          the inputs of this component for an earlier version of the component

        • version: string | null

          the version of the component for which the inputs were for, or null if the version is unknown

        Returns { [key: string]: any }

        the inputs for the current version of the component