appbaseio / appbaseio/reactivebase

bucketsTransform and countFormatter prop for SingleList, MultiList components

Aperta
#243 0 commenti 0 reazioni 1 assegnatario Rivendicata da @metagrover Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
18
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.