appbaseio / appbaseio/reactivebase
bucketsTransform and countFormatter prop for SingleList, MultiList components
未关闭
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 还没有评估数据。