snipe
snipe
FFilament
Created by snipe on 6/12/2024 in #❓┊help
Tabbed container with infolist in one tab, other related tables in the other tabs
Hi folks! Huge fan of Filament (tho I'm very new). Sorry for the n00btastic question, but googling didn't get me where I needed to go. I'm trying to build a tabbed interface where the first tab is the model's general iinfo, and the tabs are populated with already established $table schemas from other models. I'm sure I'm missing something super obvious, but would appreciate a nudge in the right direction.
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Tabs::make('Tabs')
->tabs([
Tabs\Tab::make('Details')
->schema([
TextEntry::make('name'),
])->columns(3),
Tabs\Tab::make('Assets')
->schema([
// related table info here here
]),


])
->persistTab()
->persistTabInQueryString()

])
->columns(1);

}
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Tabs::make('Tabs')
->tabs([
Tabs\Tab::make('Details')
->schema([
TextEntry::make('name'),
])->columns(3),
Tabs\Tab::make('Assets')
->schema([
// related table info here here
]),


])
->persistTab()
->persistTabInQueryString()

])
->columns(1);

}
92 replies