FieldFormatterThis is a React component
SourceFor the given Field
and value
render the relevant Formatter for it.
Usage of this component requires UiProvider to appear somewhere above it in the component hierarchy. You
must pass the getFormatterForField
prop through which is what determines which component to use for a specific field.
getFormatterForField
can return either a component directly or a 2-element array of the component and some props to pass
through to it. FieldFormatter
handles rendering the returned component and passing through any extra props returned from
getFormatterForField
or passed through to Formatter
.
Parameter | Type | Description | |
---|---|---|---|
* | props.field | Field | The field used to determine the formatter to use. If field is bound to the record
then |
props.value | FieldValueT | Value to format. If |