Tab change event
Currently clicking a tab changes the query for the list page but I also want to change the option in Table bulk actions. Is this possible? I wan't to change the bulk actions depending on the
activeTab
query param WITHOUT a page reload.
Solution:Jump to solution
Thank you @Dennis Koch this was the solution we were looking for.
```php
BulkAction::make('Print Mailout')
->label('Print Mailout PDFs')...
5 Replies
I wan't to change the bulk actions depending on the activeTab query param WITHOUT a page reload.Not sure whether that's gonna work, but you can try. The active tab should be stored as a property, and I guess you can access it trough
fn ($livewire) => $livewire->activeTab
Solution
Thank you @Dennis Koch this was the solution we were looking for.
I asked a couple days ago but without success, so thanks a lot π
While we are in Tabs @Dennis Koch, is it possible to refresh the tab count without refreshing the page when a record switch to an other tab (after an action) ?
I don't think it's possible without a refresh event
Ah okay, but how does it work with delete, restore, etc ? Because it does not refresh the page but the count is refreshed ... I tried too search in these actions but I don't really see where its done π«€