Griddle icon indicating copy to clipboard operation
Griddle copied to clipboard

How to apply Custom Column Filters

Open DannyTakeuchi opened this issue 7 years ago • 2 comments

Griddle version

1.3.1

Expected Behavior

I have a datable that works with external data and has the default filter option. I want to be able to specify columns to search instead of the entire data-table. Perhaps this could be done with a dropdown menu of columns? How should I go about this. I looked through #320 and #357 but I'm still a bit lost. A little more instruction on where I can find some documentation and how much in the library I can leverage and how much I have to code myself would be greatly helpful.

DannyTakeuchi avatar Jul 20 '17 21:07 DannyTakeuchi

I also have interest in this topic. The default settings filter are really basic, and most will need to customize it. Replacing the Settings component for a custom component should be easy, but I'm having trouble with it; just dropping the custom component don't give me access to hidden and visible columns props, nor toggle action, just settingsComponents array.

Any help?

Thanks

ammichael avatar Aug 21 '17 14:08 ammichael

Replacing the Settings component for a custom component should be easy, but I'm having trouble with it; just dropping the custom component don't give me access to hidden and visible columns props, nor toggle action, just settingsComponents array.

Settings is a rough edge in the component extensibility model, but there are several custom settings examples. In short, the individual settings components each use connect to grab what they need from Redux, as do custom replacements.

The actual logic for filtering is left as an exercise for the user, unless you're using LocalPlugin.

dahlbyk avatar Aug 21 '17 20:08 dahlbyk