Used by SfDynamicComponentLoader to get necessary data for dynamic component instantiation.

interface ComponentData {
    afterComponentInit?: ((component) => void);
    properties?: {
        [property: string]: Object;
    };
    removePreviousView?: boolean;
    type: Type<any>;
    updatePropertiesOnChange?: boolean;
}

Hierarchy (view full)

Properties

afterComponentInit?: ((component) => void)

This callback gets executed right after the component has been instantiated by the SfDynamicComponentLoader. It is useful for setting any properties keeping the strongly typed references to them.

Type declaration

    • (component): void
    • This callback gets executed right after the component has been instantiated by the SfDynamicComponentLoader. It is useful for setting any properties keeping the strongly typed references to them.

      Parameters

      • component: any

      Returns void

properties?: {
    [property: string]: Object;
}

This property should be used to pass a collection of key/value pair property values for the component type that is being instantiated dynamically. It should be used only in cases where the afterComponentInit callback cannot be used as it will not keep the strongly typed references to these properties.

Type declaration

  • [property: string]: Object
removePreviousView?: boolean
type: Type<any>

The type that is going to be instatiated dynamically.

updatePropertiesOnChange?: boolean

This sets whether a component of the same type with different data should be initialized again when a ned ComponentData is passed. Use case for leaving this comment: Scheduling a notification via notificationService while another one is already visible.

Generated using TypeDoc