Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 798 Bytes

search-ui-react.numericalfacetsprops.getfilterdisplayname.md

File metadata and controls

18 lines (10 loc) · 798 Bytes

Home > @yext/search-ui-react > NumericalFacetsProps > getFilterDisplayName

NumericalFacetsProps.getFilterDisplayName property

Returns the filter's display name based on the range values which is used when the filter is displayed by other components such as AppliedFilters.

Signature:

getFilterDisplayName?: (value: NumberRangeValue) => string;

Remarks

By default, the displayName separates the range with a dash such as '10 - 20'. If the range is unbounded, it will display as 'Up to 20' or 'Over 10'.