Filter by range

Hi, I'm trying to add a filter which filters a numeric value by range. I've given a room size of 24. I'd like to get all rooms which are bigger than 20 square meter.
6 Replies
Dennis Koch
Dennis Koch16mo ago
What did you try so far? If you really like a range I'd suggest using a "Custom" filter with a form and a min/max input field
krekas
krekas16mo ago
Cmon. You want help even post in oftopic but don't provide code. So how to even help you?
alexanderkroneis
alexanderkroneisOP16mo ago
I tried to apply a function on Filter, but that didn‘t work out. @Dennis Koch You mean that, correct? https://filamentphp.com/docs/3.x/tables/filters#custom-filter-forms
alexanderkroneis
alexanderkroneisOP16mo ago
I‘ll figure it out when I find it in the docs, but I didn‘t found it by the terms I used 😅
Dennis Koch
Dennis Koch16mo ago
Yes.
alexanderkroneis
alexanderkroneisOP16mo ago
Thank you 😁 I guess I‘ll provide a PR to docs to cover „range“ in that part 👍
Want results from more Discord servers?
Add your server