Nate
Is there a way to intercept the activeTab parameter in the resource table function?
Ok I have found a "hacky" way around this. I overrode the
vendor/filament/components/tabs/item.blade.php
so I could add a click event (there is already a wire:click on there but it just sets and not dispatched).
I then listen for the event in the list page like so:
This refreshed the table again so you can get the current tab value (without it you can only get the previous tab value as the page doesn't refresh between tab changes).
I now have access to the current active tab and can then switch tables based on this.
14 replies