Class SfComponentActivator
A implementation of IComponentActivator for Syncfusion Blazor components used to initialize custom components that can be registered through dependency injection.
Implements
Inherited Members
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.dll
Syntax
public class SfComponentActivator : IComponentActivator
Constructors
SfComponentActivator(IServiceProvider)
Default constructor for SfComponentActivator class.
Declaration
public SfComponentActivator(IServiceProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | provider | Service provider for registered components. |
Methods
CreateInstance(Type)
Create component for the specified component type.
Declaration
public IComponent CreateInstance(Type componentType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | componentType | Type of component need to be created. |
Returns
| Type | Description |
|---|---|
| IComponent | Returns newly created component. |