React-bootstrap-table2: select Filter (multi columns)

Created on 9 Feb 2018  Â·  7Comments  Â·  Source: react-bootstrap-table/react-bootstrap-table2

so for the simple select Filter example

import BootstrapTable from 'react-bootstrap-table-next';
import filterFactory, { selectFilter } from 'react-bootstrap-table2-filter';

const selectOptions = {
  0: 'good',
  1: 'Bad',
  2: 'unknown'
};

const columns = [{
  dataField: 'id',
  text: 'Product ID'
}, {
  dataField: 'name',
  text: 'Product Name'
}, {
  dataField: 'quality',
  text: 'Product Quailty',
  formatter: cell => selectOptions[cell],
  filter: selectFilter({
    options: selectOptions
  })
}];

<BootstrapTable keyField='id' data={ products } columns={ columns } filter={ filterFactory() } />

Here we can select 'good', 'bad', or 'unknown'. However, is there a way that I could multi select among them? e.g. 'good' + 'bad' without 'unknown' Is this currently supported ?

Thank you

good first issue help wanted

All 7 comments

@Johnny-jober it's good ask even in the legacy react-bootstrap-table, I'll implement the multi select for react-bootstrap-table2 with another custom repo, but right now, I'll working on recovery all the features of react-bootstrap-table, I'll implement it in the beginning of Q2.

Let me know if you have any other question and PR is welcome.

NOTES

After [email protected] and [email protected], we support the custom filter. However, multi select filter still pending, I will implement it in the future

@AllenFang Hi, any news about multi-select filter ?

best regards.

+1

On Mon, Jul 23, 2018 at 12:54 PM, c-aursu notifications@github.com wrote:

@AllenFang https://github.com/AllenFang Hi, any news about multi-select
filter ?

best regards.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/199#issuecomment-407126737,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKiKkW2EcUhnkWTDJJLOOJZcLwLe0hgrks5uJf_ZgaJpZM4R_c94
.

--
Mark Kolenski
Principal Software Engineer
p: 978.809.7708
e: mark.[email protected] mark.kolenski@invoke.com

Currently, my project needs a multifilter select functionality, any help/idea how would I add achieve this?

@AllenFang there is a way to implement an filter not only EQ - but also NOT_EQ in this multiSelect ?depends of each value selected.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kamarajuPrathi picture kamarajuPrathi  Â·  4Comments

harishkumarreddy12 picture harishkumarreddy12  Â·  3Comments

epsyan picture epsyan  Â·  4Comments

eylonronen picture eylonronen  Â·  3Comments

eylonronen picture eylonronen  Â·  3Comments