Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Type Alias ViewFactory<TView, TData>Beta

    ViewFactory: (
        data: TData,
        scope: ContextScope,
        view?: TView,
    ) => TView | undefined

    Factory to create a view from some data

    Type Parameters

    • TView = unknown
    • TData = unknown

    Type Declaration

      • (data: TData, scope: ContextScope, view?: TView): TView | undefined
      • Parameters

        • data: TData

          the data to create a view for, typically a LimeObject

        • scope: ContextScope

          the ContextScope the view is rendered in. Bound to the consumer's host element so values like the current context, limeobject, user etc. resolve correctly.

        • Optionalview: 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