appbaseio / appbaseio/reactivebase

bucketsTransform and countFormatter prop for SingleList, MultiList components

Offen
#243 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @metagrover Auf GitHub ansehen
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.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.