I have a custom column/cell type and I want to be able to control which of the Filter Conditions are associated with this custom cell type (i.e. “is between”, “after”, “before”). In my situation, I want the user to be able to filter by some of the conditions that are available to the date type, but not all of them since not all will be relevant to the data type.
Hi @d.neswold
Can you provide an example step-by-step how you would like it to work?
ps. we cannot set different filters for columns but maybe we can work it out with some callbacks.
I would ideally like to be able to define the filter conditions available to each column when defining the column type, format, renderer etc. like below:
columns: [ {type: 'numeric', format: '$0,0.00',filters: ['is_between', 'before']} ]
However, I’m open to defining these filter conditions in a callback when defining the custom cell type.
Unfortunately this can’t be achieved with current filters structure but I will definitely mark this issue as a feature request. It would be great to have an ability to adjust filters to columns.
How could we proceed in the time being using callbacks?
@d.neswold
callbacks could replace dropdownMenu for filters if you would like to make a cell readOnly or clear a column. Other options needs a UI element to handle calculations.
I guess that trying to use callbacks in other situations can create more issues than desired.
How about a scenario where we define the filter conditions when defining a custom cell type?
@d.neswold can you share more details about this scenario? You’d need to share an A to B case that you would like to get.