Function builtInAspect

  • Creates an aspect applied to control with built instance.

    When converted to another control with the same value, an aspect instance remains as is.

    When converted to another control with another value, an aspect instance is built again with original control passed to the builder as a second parameter.

    Type Parameters

    • TValue

      Input value type.

    • TInstance

      Aspect instance type.

    • TKind extends keyof InAspect.Application.Map<unknown, unknown>

      Aspect application kind.

    Parameters

    • control: InControl<TValue>

      Target control to apply an aspect to.

    • aspectKey: Key<TInstance, TKind>

      Applied aspect key.

    • build: (<TValue>(this, control, origin?) => TInstance)

      Aspect instance builder function. Accepts target control and optionally an original one as parameters.

        • <TValue>(this, control, origin?): TInstance
        • Type Parameters

          • TValue

          Parameters

          Returns TInstance

    Returns Applied<TValue, TInstance>

    Applied input aspect.

Generated using TypeDoc