Repeater with ->table( is not showing as table

I tried to replicate the example from the docs and want to display a repater table in a form. The following code shows a regular repated form - not in a table.
class ContainerForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Repeater::make('invitations')
->table([
TableColumn::make('Name'),
TableColumn::make('Role'),
])
->schema([
TextInput::make('name')
->required(),
Select::make('role')
->options([
'member' => 'Member',
'administrator' => 'Administrator',
'owner' => 'Owner',
])
->required(),
])
]);
}
}
class ContainerForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Repeater::make('invitations')
->table([
TableColumn::make('Name'),
TableColumn::make('Role'),
])
->schema([
TextInput::make('name')
->required(),
Select::make('role')
->options([
'member' => 'Member',
'administrator' => 'Administrator',
'owner' => 'Owner',
])
->required(),
])
]);
}
}
Is there something wrong? Filament 4.0.1 with Laravel 12.24, PHP 8.3.24
No description
2 Replies
awcodes
awcodes2mo ago
Increase you window width. The table repeater changes its view below a certain breakpoint.
conradh
conradhOP2mo ago
adding ->columnSpanFull() did the trick, thank you!

Did you find this page helpful?