react-filter-builder
react-filter-builder copied to clipboard
A React component for building queries/filters.
Please do you have any suggestions or way to add combinators (AND, OR, NOT) to the filters? Thanks. Taiwo
@Hexagonbio fixed the issue with `PropTypes`. Current state of the library is not usable and throws an error. `Uncaught TypeError: Cannot read property 'array' of undefined` This will fix that.
If I want to have this filter builder for a select dropdown, or to do an async request to a rest api, is there any way to do it ?
I was investigating this tool for use in an ES6 project with a custom webpack/babel config (without babel "es2015"). Attempting to import your npm module resulted in a compile time...
Would be nice to have some linting goin' on
Set up tests and write some of 'em.
Mostly need to cover what fields are supported in `filterDefs`.
Add a text input above the filter attribute picker to filter the possible attributes See https://github.com/CanopyTax/react-query-builder/blob/master/src/query-builder.js#L242
Add the ability to show a custom message when a filter gets disabled, i.e., "This filter type is not compatible because X" See https://github.com/CanopyTax/react-query-builder/blob/master/src/query-builder.js#L189
Right now it only supports the `text` input type. We should implement `datepicker`, `daterange`, `select`, `multiselect`, and probably some others. See the [input component](https://github.com/CanopyTax/react-query-builder/blob/master/src/filter-input.component.js)