F
Filament16mo ago
Sesh

Change a table filter from an updated lifecycle hook

I need to change table filter of a V3 standalone table component from a livewire updated lifecycle hook. Basically my questions is: How can I change and apply the table filter from the updated() function outside of the table function.
1 Reply
Patrick Boivin
Patrick Boivin16mo ago
If this is all in the same livewire component, I think this should work:
$this->tableFilters['my_filter']['value'] = 'new_value';
$this->tableFilters['my_filter']['value'] = 'new_value';
Want results from more Discord servers?
Add your server