Replies: 2 comments 7 replies
-
I struggled with the same problem of filtering a boolean too.
The "accepted" property is the one that we want to filter in the table.
Then in the table you will have something like this:
In this example i'm using a SELECT with 3 options and i want to filter TRUE , FALSE and ALL values in the "accepted" column. |
Beta Was this translation helpful? Give feedback.
-
I agree. I think filtering documentation needs improvement -- a simple guide would be very helpful to get folks started. There is a simpler example of filtering in the pagination example (here). However, that created even more confusion for me because the example sets filtering values -- for a string and for a min/max tuple -- but there was no filterFn specified anywhere, and there was no mention of a default filterFn in the documentation. It took me a while but I finally found the source code below (here). It indicates a default being applied when setFilterValue is called -- which I assumed was the case but without clear documentation, this was very confusing.
and
|
Beta Was this translation helpful? Give feedback.
-
Hi, first of all thank you for the great library, I'm convinced this library is the right approach to the problem of rendering tables (I use it in React). I used to use v7 in a couple of projects.
However, I'm new to v8 and I wanted to add a simple boolean filter in v8 on a column, the example I get is a 436-line piece of code
The guide for filters looks like this:
Maybe it's me, maybe I don't look at the right place, maybe I'm not having a good day, but I'm lost.
I would expect a simple, let's say 30 line example with a filter on a boolean value, and another one with some text value.
setFilter()
seems to have disappeared between v7 and v8, I could not find any mention of it in the migrating to v8 guide.I've been struggling for 30 minutes for that basic feature, and I am wondering if I'm the only one.
Beta Was this translation helpful? Give feedback.
All reactions