MediaSFU Angular
    Preparing search index...

    Interface CustomComponentOverride<TComponent, TProps>

    Base interface for component overrides Allows replacing a component or wrapping its render output

    interface CustomComponentOverride<TComponent = any, TProps = any> {
        component?: Type$1<TComponent>;
        render?: (
            props: TProps,
            defaultRender?: () => any,
        ) => TemplateRef<any> | Type$1<any>;
    }

    Type Parameters

    • TComponent = any
    • TProps = any
    Index

    Properties

    Properties

    component?: Type$1<TComponent>

    Replace the component entirely with a custom Angular component

    render?: (
        props: TProps,
        defaultRender?: () => any,
    ) => TemplateRef<any> | Type$1<any>

    Wrap or enhance the default render output

    Type Declaration

      • (props: TProps, defaultRender?: () => any): TemplateRef<any> | Type$1<any>
      • Parameters

        • props: TProps

          Props passed to the component

        • OptionaldefaultRender: () => any

          Function that returns the default component

        Returns TemplateRef<any> | Type$1<any>