How To: Default Table Filters?
Created 6 years ago by finnito

Hey all,

I'd like to be able to set some default table filters within some custom modules. Is this possible?

Cheers,

Finn

ryanthompson  —  6 years ago Best Answer

Hmm.. This sounds a little more like views. Can you give us more detail? What values are you defaulting? Is it something like "Unpaid Invoices" that you're trying to show? Something that might be separated a little higher. Default filter values or a query constraint is usually indicative of needing a "table view": https://github.com/anomalylabs/users-module/blob/2.4/src/User/Table/UserTableBuilder.php#L24-L79

finnito  —  6 years ago

Ah yes, that totally looks like what I need. I'll give it a shot today! Thanks Ryan 😄

finnito  —  6 years ago

@ryanthompson NICE. This is so good. Thanking you greatly!