AllenFang / AllenFang/react-bootstrap-table

create custom filter that behave as multi SelectFilter

未關閉
#1,942 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
2.2k
分支
761
PR 合併指標
30 天內沒有已合併 PR

描述

Hey,

I would like to create a custom filter that appears as icon near the column name, and on click I should open a dropdown menu with multi select options. please see screenshot below:
![image](https://user-images.githubusercontent.com/10222986/38615669-2ae93130-3d9a-11e8-8170-18622fc6f347.png)

I have read your documentation, I found a custom filter that only have textOK/textNOK filters, is there anyway to create **customFilter** that i can pass to the **filterHandler** an array of values so it filters the column by these values ?
for example : `this.props.filterHandler(['a','b']);` will keep only values that equals to 'a' or 'b' in the column.

Thanks

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。