Type alias ViewFactory<TView, TData>

ViewFactory<TView, TData>: ((data: TData, context: LimeWebComponentContext, view?: TView) => TView | undefined)

Type Parameters

  • TView = unknown

  • TData = unknown

Type declaration

    • (data: TData, context: LimeWebComponentContext, view?: TView): TView | undefined
    • Beta

      Factory to create a view from some data

      Parameters

      • data: TData

        the data to create a view for, typically a LimeObject

      • context: LimeWebComponentContext

        the context of the web component rendering the view

      • Optional view: TView

        the view as it was created by the previous factory, or undefined if this is the first factory in the chain

      Returns TView | undefined