Class GridValueConverter
This ensures that the grid config is merged in with the front-end value
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class GridValueConverter : JsonValueConverter
Constructors
GridValueConverter(PropertyEditorCollection, IGridConfig, ILogger<GridValueConverter>)
Declaration
public GridValueConverter(PropertyEditorCollection propertyEditors, IGridConfig config, ILogger<GridValueConverter> logger)
Parameters
Type |
Name |
Description |
PropertyEditorCollection |
propertyEditors |
|
IGridConfig |
config |
|
ILogger<GridValueConverter> |
logger |
|
Methods
Declaration
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
Parameters
Type |
Name |
Description |
IPublishedElement |
owner |
|
IPublishedPropertyType |
propertyType |
|
System.Object |
source |
|
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Object |
|
GetPropertyCacheLevel(IPublishedPropertyType)
Declaration
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType)
Parameters
Type |
Name |
Description |
IPublishedPropertyType |
propertyType |
|
Returns
Type |
Description |
PropertyCacheLevel |
|
GetPropertyValueType(IPublishedPropertyType)
Declaration
public override Type GetPropertyValueType(IPublishedPropertyType propertyType)
Parameters
Type |
Name |
Description |
IPublishedPropertyType |
propertyType |
|
Returns
Type |
Description |
System.Type |
|
IsConverter(IPublishedPropertyType)
Declaration
public override bool IsConverter(IPublishedPropertyType propertyType)
Parameters
Type |
Name |
Description |
IPublishedPropertyType |
propertyType |
|
Returns
Type |
Description |
System.Boolean |
|