AllenFang / AllenFang/react-bootstrap-table

create custom filter that behave as multi SelectFilter

Open
#1,942 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.