Skip to content

Is the NumberFilter capable of filtering related record counts? #37

@gmgarrison

Description

@gmgarrison

Describe the bug
I have a table column that displays counts of related records and I'd like to be able to filter the table for a minimum or maximum value of that count.

To Reproduce
I'm using a TextColumn with the ->counts('') method to generate the number I'd like to sort

Expected behavior
I tried using the ->relationship() method but didn't see a way to get it to work.

If there IS a supported way to do this, maybe it would be good to add it as an example in the readme? I'd think it might be pretty common.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions