RangeFormatterThis is a React component
SourceFormats a range.
If no value is provided blankLabel
is returned.
The lower
and upper
values are rendered using boundsFormatter
. If boundsFormatter
is not provided then the value
will be returned as is. You can pass extra props to the formatters specifically using boundsFormatterProps
(both upper
and lower), lowerFormatterProps
(lower only) and upperFormatterProps
(upper only).
This is the default formatter used for DateRangeField, DateTimeRangeField, FloatRangeField and IntegerRangeField.
Parameter | Type | Description | |
---|---|---|---|
props.blankLabel | ReactNode | What to render when Defaults to | |
props.boundsFormatter | BoundsFormatter | The formatter to use to render the If not specified then defaults to returning the | |
props.boundsFormatterProps | BoundsFormatter Props | Any props to pass through to | |
props.lowerFormatterProps | BoundsFormatter Props | Any props to pass through to the lower | |
props.separator | React.ReactNode | The separator to render between the | |
props.upperFormatterProps | BoundsFormatter Props | Any props to pass through to the upper | |
props.value | RangeValue |null | The range value. This should be an object with a |