Nate
Is there a way to intercept the activeTab parameter in the resource table function?
I want to change the table structure depending on the tab that was just clicked. I can get the value after you leave the tab using
$table->getLivewire()->activeTab
(as the tab is probably only available after the table has rendered).
I would like to do something like:
TIA14 replies
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.
8 replies
Switching Database Connection on a Resource
Hey filaments,
I have a multi-tenancy database and I want to run actions on tenants.
I have a TenancyResource and on the list page I was thinking about making that the entry point to manage tenants. So you click one of the tenants in the list and go to its view page and using relationship managers and some custom pages I though maybe there would be a good oprtunity to switch database context.
Once you've clicked on a tenant I would have a list page with tabs to show user lists and and other stuff as well as actions to create records.
What would be the best to achieve this. At what point, middleware wise or in the filament lifecycle can I switch DB context?
Thanks ❤️
3 replies
Tab that contains a form that is always editable?
I have a tab with a form inside on my resource page. The only problems is you can only access the fields when the form is in create or edit mode.
This custom tab contains a form to upload something to S3 and I need the fields always editable even when resource isn't in create or edit mode. Is this possible?
Kind Regards
Nate
8 replies