[](https://github.com/komarovalexander/react-filter-control/blob/master/LICENSE) [](https://t
npm install react-filter-control 

sh
npm install react-filter-control
`
yarn
`sh
yarn add react-filter-control
`
Usage
$3
`js
import React from "react";
import ReactDOM from "react-dom";
import FilterControl from "react-filter-control";
import { fields, filterValue } from "./data.js";
const handleFilterValueChange = filterValue => {
// ...
};
const App = () => {
return (
filterValue={filterValue}
fields={fields}
onFilterValueChanged={handleFilterValueChange}
/>
);
};
ReactDOM.render( , document.querySelector("#root"));
``
Array.<Field> | The fields settings |
FilterValue | The filterValue settings |
Array.<Group> | The groups settings |
event | The filter value changed handler |
string | Group name |
Array.<(FilterValueGroup\|FilterValueItem)> | Items in group |
key | Item key |
string | Group name |
Array.<(FilterValueGroup\|FilterValueItem)> | Items in group |
key | Item key |
string | Field |
string | Operator |
any | Value |
string | Field name |
string | Field caption |
Array.<Operator> | Field operators |
string | Group name |
string | Group caption |
string | Operator name |
string | Operator caption |