Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Column Filter in react-bootstrap-table-next not working?

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, react
領域
frontend

調査の方向性

この issue では、リポジトリのファイルやテストが指定されていません。まず、textFilter getFilter callback と handleWidgetClick path をたどり、リンクされている Stack Overflow の例と比較してください。完了条件は、カテゴリをクリックすると報告されたエラーなしでフィルター関数が呼び出され、テーブルにそのカテゴリだけが表示されることです。

索引モデルが issue の本文から書いたものです。

説明

I have following widgets which represents categories form the data in the table: enter image description here

The flow is when a user clicks on one of the widgets the table should show data of that category only.

So far I have implemented following:

const columns = [
{ 
 ....
 dataField: "Category", 
 formatter: formatCategory,
 text: "Category",
 sort: true,
 filter: textFilter({
   getFilter: (filter) => {
     // nameFilter was assigned once the component has been mounted.
     categoryFilter = filter;
   }
 })
 ....
}

Handle Clicking Event on Button and Passing the category:

const handleWidgetClick = (category) => {
   categoryFilter = category;

   // When I am doing something like this I am getting Uncaught Error
   // categoryFilter is not a Function
   categoryFilter(category) 
};

I have followed example from here

I am not sure what/where I am doing something wrong. Please guide me through it, Thanks

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

環境構築

はじめの一歩

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

AllenFang/react-bootstrap-table のほかの issue

AllenFang/react-bootstrap-table の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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