Class ScreenConfigurationService
- Namespace
- Dynamicweb.CoreUI.Data.ScreenConfiguration
- Assembly
- Dynamicweb.CoreUI.dll
public static class ScreenConfigurationService
- Inheritance
-
ScreenConfigurationService
- Inherited Members
Methods
GetModelFields(Type?)
public static IEnumerable<ModelFieldInfo> GetModelFields(Type? modelType)
Parameters
modelTypeType
Returns
GetModelFields(Type?, Type?)
public static IEnumerable<ModelFieldInfo> GetModelFields(Type? modelType, Type? screenType)
Parameters
Returns
GetModelFields<TModel>()
public static IEnumerable<ModelFieldInfo> GetModelFields<TModel>()
Returns
Type Parameters
TModel
GetScreenConfiguration(Type)
public static ScreenConfiguration GetScreenConfiguration(Type screenType)
Parameters
screenTypeType
Returns
GetScreenConfiguration(Type, long?)
Builds the screen configuration without applying model-based configuration providers.
public static ScreenConfiguration GetScreenConfiguration(Type screenType, long? presetId)
Parameters
screenTypeTypeThe type of screen to instantiate and configure.
presetIdlong?The preset identifier assigned to the screen, or null when none is supplied.
Returns
- ScreenConfiguration
The combined configuration for the screen.
GetScreenConfiguration(Type, long?, object?)
Builds the screen configuration, applying model-based configuration providers when a model is supplied.
public static ScreenConfiguration GetScreenConfiguration(Type screenType, long? presetId, object? model)
Parameters
screenTypeTypeThe type of screen to instantiate and configure.
presetIdlong?The preset identifier assigned to the screen, or null when none is supplied.
modelobjectThe model supplied to matching configuration providers. A null value skips those providers.
Returns
- ScreenConfiguration
The combined configuration for the screen, including applicable model-based restrictions.
GetScreenFields(Type)
public static IEnumerable<ModelFieldInfo> GetScreenFields(Type screenType)
Parameters
screenTypeType