appbaseio / appbaseio/reactivebase

bucketsTransform and countFormatter prop for SingleList, MultiList components

Đang mở
#243 0 bình luận 0 reaction 1 người được giao Được @metagrover nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
18
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.