We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 856e63d commit a534d52Copy full SHA for a534d52
packages/react-bootstrap-table2-example/examples/column-filter/custom-filter-logic.js
@@ -12,11 +12,11 @@ import BootstrapTable from 'react-bootstrap-table-next';
12
import filterFactory, { textFilter } from 'react-bootstrap-table2-filter';
13
14
class Table extends React.Component {
15
- filterByPrice = (filterVal) => {
+ filterByPrice = (filterVal, data) => {
16
if (filterVal) {
17
- return products.filter(product => product.price == filterVal);
+ return data.filter(product => product.price == filterVal);
18
}
19
- return products;
+ return data;
20
21
22
render() {
0 commit comments