6 Replies
While it might be a little different because it's nested, RelationManagers do have tables inside tabs. eg: https://demo.filamentphp.com/shop/customers/2/edit?activeRelationManager=1
My problem is that I have a custom page, and I want to change the resource displayed with tabs. For example, I have two tabs: the 'user' tab and the 'project' tab. When I click on the 'user' tab, it will display user resources, and when I click on the 'project' tab, it will display project resources.Is this possible?
It can be done, but isn't that convenient. You need your custom page, and use the tab component inside the view file. Then put both tables in a separate Livewire component and use those in the view file.
Check the
list-records.blade.php
for reference.I am not clear about what you mean, so please explain further or provide a reference. Thanks, Dennis.
- You already have a custom page with a view.
- You can reuse the Tab Blade component (see
list-records.blade.php
for reference)
- Create a Livewire component for every table you need (See the Table Docs, https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component)
- Inlcude that Livewire components on your custom page inside the tabsCould you please give an example of where to include the tab contents for Livewire components.
I am just trying out :
Thanks in advance.
OK! Got it