plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 72 forks source link

Issue 564 - Customizable column filtering logical operator #751

Closed Marc-Andre-Rivet closed 4 years ago

Marc-Andre-Rivet commented 4 years ago

Closes #564

Expands on the filter_action prop to allow choosing the logical operator used between the column filters. The prop accepts the old values native, custom, none but now also allow

{
    type: 'native' | 'custom',
    operator: 'and' | 'or'
}

For backward compatibility purposes, if the operator is not defined or if the old values are used, the operator defaults to and.

This should allow for further extensions in the future, for example, if we add a column filter menu that allows more complex per-column conditions, this could be represented with something like:

{
    ...
    ui: 'input' | 'menu'
}