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.
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.
Solution
Since your asking about v2, for the reverse way check out this link: https://laraveldaily.com/post/filament-click-widget-auto-update-table-filter
For filters to the other component, you might be able to overwrite updatedTableFilters() on your ListResource and add an emitter there, and then listen on your other component. On my phone but that makes sense in my mind.
For filters to the other component, you might be able to overwrite updatedTableFilters() on your ListResource and add an emitter there, and then listen on your other component. On my phone but that makes sense in my mind.
