Value Mappers
Configuring value mappers in Konstrukt, the back office UI builder for Umbraco.
Defining a value mapper
// Example
public class MyValueMapper : KonstruktValueMapper
{
public override object EditorToModel(object input)
{
// Tweak the input and return mapped object
...
}
public override object ModelToEditor(object input)
{
// Tweak the input and return mapped object
...
}
}Setting a field value mapper
SetValueMapper<TMapperType>() : KonstruktEditorFieldConfigBuilder<TEntityType, TValueType>
SetValueMapper(Type mapperType) : KonstruktEditorFieldConfigBuilder<TEntityType, TValueType>
SetValueMapper(KonstruktMapper mapper) : KonstruktEditorFieldConfigBuilder<TEntityType, TValueType>
Last updated