bucketsTransform and countFormatter prop for SingleList, MultiList components

オープン
#243 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@metagrover がすでに取り組んでいます。

2017年11月3日 から。

評価

この issue はまだ評価されていません。

説明

enhancement

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

主要言語
JavaScript
スター
18
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appbaseio/reactivebase のほかの issue

appbaseio/reactivebase の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。