Skip to content

bucketsTransform and countFormatter prop for SingleList, MultiList components #243

@siddharthlatest

Description

@siddharthlatest

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions