appbaseio / appbaseio/reactivebase
bucketsTransform and countFormatter prop for SingleList, MultiList components
Offen
enhancement
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18
- Forks
- 2
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Allow users to add a custom transform function once the aggregation results are returned back from Elasticsearch.
> countFormatter ((count:number)=> number|string) A optional function to format the doc counts
> bucketsTransform ((buckets:Array)=> transformedBuckets) A optional function to transform the buckets used for the aggregation, can be used to sort the list or to inject new facets.
Reference: http://docs.searchkit.co/stable/components/navigation/refinement-list.html
Ideal prop names would be `onBucketData`, `onCount`
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.