Interface IUiComponentFactory
Factory interface for creating UI components.
Namespace: Serenity.Ui.Application.Interfaces.Components.Factories
Assembly: Serenity.Ui.Application.dll
Syntax
public interface IUiComponentFactory
Methods
CreateUiComponent<Element, Parameters, Actions>(Parameters, Actions, IFoundationViewElement, ILogService)
Creates a UI component with the specified parameters, actions, template, and log service.
Declaration
Element CreateUiComponent<Element, Parameters, Actions>(Parameters parameters, Actions actions, IFoundationViewElement template, ILogService logService) where Element : IFoundationViewElement where Parameters : IUiComponentParameters where Actions : IUiComponentActions
Parameters
| Type | Name | Description |
|---|---|---|
| Parameters | parameters | The parameters for the UI component. |
| Actions | actions | The actions for the UI component. |
| IFoundationViewElement | template | The template for the UI component. |
| ILogService | logService | The log service to be used by the UI component. |
Returns
| Type | Description |
|---|---|
| Element | The created UI component. |
Type Parameters
| Name | Description |
|---|---|
| Element | The type of the UI component to create. |
| Parameters | The type of the parameters for the UI component. |
| Actions | The type of the actions for the UI component. |