krizz3332
table filters update event
Unfortunately I haven't found a good way yet to listen on table form filter change events.
I have the table filters: startDate and endDate and want to listen on the component above the tablefilter when one of the field gets changed.
Is there an easy way to emit specific events from a form filter? like: ->emitEvent({name}, ..) or something.
Or is there a predefined event?
Same goes for the reverse way: Emit an event from the parent component and listen to the events in the filament table and change some filter values when a specific event occurs.
10 replies
Add tablefilter to querystring programatically
I haven't found a solution in the discussions or discord yet.
My goal is to have some buttons above the table which should prefill the table filters. And update also the querystring.
I don't want to use the querystring direclty (href to some url with the querystring). I would like to use some methods from the HasFilters trait. But I couldn't find a proper one. I only found removeTableFilter but am searching for like addTableFilter.
Is there another way of prefilling the table filters to build multiple "sets" for some quick buttons above the table?
23 replies
Lazy loading collapsable table data
is there a way of adding lazy loading the content (relational data) for a collapsable table. I only found this discussion here: https://github.com/filamentphp/filament/discussions/5692
10 replies