Skip to main content
Version: 2.x

ValueConverter interface

@microsoft/fast-element > ValueConverter

ValueConverter interface

Represents objects that can convert values to and from view or model representations.

Signature:

export interface ValueConverter 

Methods

Method

Description

fromView(value)

Converts a value from its representation in the view, to a representation for the model.

toView(value)

Converts a value from its representation in the model, to a representation for the view.