ng-xtend API documentation
    Preparing search index...

    Class XtRenderComponent<T>

    Offers a nice and easy to dynamically embed a component. You set the type, the display mode, and either the value or the formgroup & subName to use. XtRender will then instantiate the component, bind it to the value or form, and display it.

    Type Parameters

    • T

    Implements

    • AfterViewInit
    Index

    Constructors

    Properties

    componentType: InputSignal<Type<XtComponent<T>> | undefined> = ...

    Optional explicit component type to render

    context: Signal<XtContext<any>> = ...

    Computed context derived from display mode, form group, value, and value type

    displayMode: InputSignal<XtDisplayMode> = ...

    The display mode (e.g. EDIT, VIEW, etc.)

    formGroup: InputSignal<FormGroup<any> | undefined> = ...

    The parent form group (used when inside a form)

    inputs: InputSignal<XtBaseInput | undefined> = ...

    Inputs to pass through to the rendered component

    models: InputSignal<XtComponentModel | undefined> = ...

    Model signals to pass through to the rendered component

    outlet: Signal<NgComponentOutlet<any>> = ...

    Reference to the NgComponentOutlet used to dynamically render the component

    outputs: OutputEmitterRef<XtComponentOutput> = ...

    Emits the outputs from the rendered component

    outputsObject: XtBaseOutput = ...

    Object holding the output emitters from the rendered component

    realContext: Signal<XtContext<any>> = ...

    Computed context that resolves references (if any)

    resolverService: XtResolverService = ...

    Injected resolver service for finding the best component

    subName: InputSignal<string | undefined> = ...

    The sub-name within the form group

    type: Signal<Type<XtComponent<T>> | null> = ...

    Computed component type to render, resolved from the context if not explicitly set

    value: ModelSignal<T | undefined> = ...

    The value to display/edit (used when not inside a form)

    valueType: InputSignal<string | undefined> = ...

    The value type identifier used for component resolution

    Methods