How to add table inside the tab content?

I have a task to create a view page on users. The scope is every tab content is different page/component so that it will not load heavily.. All the tabs are tables content example.. in my UserResource I created infolist for tab
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Tabs::make('Tabs')
->tabs([
Tabs\Tab::make('Users')
->icon('heroicon-m-user-group')
->schema([

]),
Tabs\Tab::make('Subscriptions')
->schema([
// ...
]),
Tabs\Tab::make('Favorites')
->schema([
// ...
]),
])
]);
}
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Tabs::make('Tabs')
->tabs([
Tabs\Tab::make('Users')
->icon('heroicon-m-user-group')
->schema([

]),
Tabs\Tab::make('Subscriptions')
->schema([
// ...
]),
Tabs\Tab::make('Favorites')
->schema([
// ...
]),
])
]);
}
How to attached/make users table in the user tab? I want to test this first and follow other tabs 1. by inserting directy the table? or 2. make a livewire component then render ?
7 Replies
Jerome V
Jerome V3mo ago
This is for test sir, because our old projects the view page has tabs and each tab is tables.. so for now I want to know how to include table in tab content.. That is our old project.. I want to implement like that
No description
LeandroFerreira
LeandroFerreira3mo ago
Do you know relation managers?
Jerome V
Jerome V3mo ago
No sir, I just read right now the docs but I can't find sample on how to implement it..
LeandroFerreira
LeandroFerreira3mo ago
please check the docs. There is a Filament demo that you can see some examples https://demo.filamentphp.com/blog/posts/1/comments https://github.com/filamentphp/demo
GitHub
GitHub - filamentphp/demo: Source code for the demo.filamentphp.com...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
Jerome V
Jerome V3mo ago
Thanks sir.. I will clone the repo and check this.. I will feed back you later.. Thank you for the help Hello sir, Why my sub navigation is hide when I jump into another page?
protected static SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top;


public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
\Filament\Infolists\Components\Section::make('Content')
->schema([
\Filament\Infolists\Components\TextEntry::make('content')
->prose()
->markdown()
->hiddenLabel(),
])
->collapsible(),
]);
}

public static function getRecordSubNavigation(Page $page): array
{
return $page->generateNavigationItems([
Pages\ViewUser::class,
Pages\CreateUser::class,
]);
}
protected static SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top;


public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
\Filament\Infolists\Components\Section::make('Content')
->schema([
\Filament\Infolists\Components\TextEntry::make('content')
->prose()
->markdown()
->hiddenLabel(),
])
->collapsible(),
]);
}

public static function getRecordSubNavigation(Page $page): array
{
return $page->generateNavigationItems([
Pages\ViewUser::class,
Pages\CreateUser::class,
]);
}
example if I click the create user
Dennis Koch
Dennis Koch3mo ago
This doesn't sound related to "table inside tab", right? Please open a new issue for each question
Want results from more Discord servers?
Add your server