Class ControlDisplayInfoFactory
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public class ControlDisplayInfoFactory : IControlDisplayInfoFactory
Constructors
ControlDisplayInfoFactory(IEntityDescriptorTemplate, ILogger<ControlDisplayInfoFactory>)
Declaration
public ControlDisplayInfoFactory(IEntityDescriptorTemplate entityDescriptorTemplate, ILogger<ControlDisplayInfoFactory> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityDescriptorTemplate | entityDescriptorTemplate | |
| ILogger<ControlDisplayInfoFactory> | logger |
Methods
Create(EntityDescriptor, bool, IReadOnlyCache, bool)
Creates a set of control definitions for all the exportable properties against the specified entity type
Declaration
public Task<IEnumerable<ControlDisplayInfo>> Create(EntityDescriptor desc, bool editable, IReadOnlyCache cache, bool allVisible = true)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityDescriptor | desc | The entity type to automatically return all the default controls for |
| bool | editable | Indicates if the controls should be editable by the user or not |
| IReadOnlyCache | cache | A cache |
| bool | allVisible | Indicates system properties should be visible as well |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<ControlDisplayInfo>> | The set of controls for every exportable property against the specified entity |