schema-components - v3.7.0
    Preparing search index...

    Function buildRenderProps

    • Build the RenderProps object handed to a resolver render function or a widget. Used by both the server-side <SchemaView> (which has no onChange) and the client-side <SchemaComponent> (which threads an onChange callback).

      When onChange is undefined the caller is rendering in read-only mode: a noop onChange is wired up, readOnly is forced to true, and writeOnly is forced to false. Otherwise the editability is taken from tree.editability.

      Parameters

      • tree: WalkedField
      • value: unknown
      • onChange: ((next: unknown) => void) | undefined
      • renderChild: (
            tree: WalkedField,
            value: unknown,
            onChange: (v: unknown) => void,
            pathSuffix?: string,
        ) => unknown
      • path: string

      Returns RenderProps