appbaseio / appbaseio/reactivebase

bucketsTransform and countFormatter prop for SingleList, MultiList components

Open
#243 0 comments 0 reactions 1 assignee Claimed by @metagrover View on GitHub
enhancement
Dominant language
JavaScript
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.