appbaseio / appbaseio/reactivebase

bucketsTransform and countFormatter prop for SingleList, MultiList components

未关闭
#243 0 条评论 0 个 reaction 已指派 1 人 已被 @metagrover 认领 在 GitHub 查看
enhancement
主要语言
JavaScript
星标
18
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

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`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。