Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFormComponentRegistry

A registry for rendering fields used in the FormEditor component.

Hierarchy

  • IFormComponentRegistry

Index

Properties

addRenderer

addRenderer: (id: string, renderer: Field) => void

Type declaration

    • (id: string, renderer: Field): void
    • Adds a renderer for a given id - if the id is already in use, returns false. Otherwise, returns true.

      Parameters

      • id: string

        Unique ID for the given renderer.

      • renderer: Field

        A function that takes props and returns a rendered component

      Returns void

      • Whether the renderer was added successfully. False if the id is already in use.

getRenderer

getRenderer: (id: string) => Field

Type declaration

    • (id: string): Field
    • Returns the renderer for the given id

      Parameters

      • id: string

        The unique id for the renderer.

      Returns Field

      • A function that takes props and returns a rendered component.

renderers

renderers: {}

Returns all registered renderers in dictionary form.

returns
  • A dictionary that maps an id to a renderer.

Type declaration

  • [id: string]: Field

Generated using TypeDoc