predixdesignsystem / px-data-grid

Predix UI component which defines a data grid
https://www.predix-ui.com/#/elements/px-data-grid
Apache License 2.0
12 stars 20 forks source link

Filter comparators should be extensible. #784

Closed vincentcn closed 5 years ago

vincentcn commented 6 years ago

Currently there are 3 build-in data types (Number, String, Date) According to the documentation:

numberComparators: Array Comparison options shown in the advanced filtering UI for columns of type number. Valid options are:

'less_than' 'equals' 'not_equal' 'equal_or_greater_than' 'equal_or_less_than' 'greater_than' If this array is undefined or empty, all options will be shown.

stringComparators: Array Comparison options shown in the advanced filtering UI for columns of type string. Valid options are:

'equals' 'contains' 'starts_with' 'ends_with' 'wildcard' If this array is undefined or empty, all options will be shown.

numberComparators, stringComparators are configurable to hide some options. There is only one comparator(range) for Date type and it is not configurable. datefiltereditor

None of the datatype comparators is extensible(add more actions). Could you please help to support it?

stale[bot] commented 5 years ago

This issue or PR has been automatically marked as stale because there has been no activity in over a year. It will be closed in 1 week if no further activity occurs. Thanks for your contribution, and please don't hesitate to comment if this issue/PR is still relevant.