← Back to Plugins
  • Table Repeater

Table Repeater

Plugin information

by Martin Hwang • 19 stars

Field Form builder Layout Admin panel

Repeater In Table Layout

Support

#table-repeater on Discord

Views

1105

License

MIT

Documentation

Installation

You can install the package via composer:

composer require icetalker/filament-table-repeater

You can publish the views using

php artisan vendor:publish --tag="filament-table-repeater-views"

Usage

use Icetalker\FilamentTableRepeater\Forms\Components\TableRepeater;
 
protected function getFormSchema(): array
{
return [
...
Forms\Components\Grid::make(1)->schema([
 
TableRepeater::make('items')
->relationship('items')
->schema([
Forms\Components\TextInput::make('product'),
...
])
->collapsible()
->defaultItems(3),
 
]),
 
];
}

Since this component extends from Filament\Forms\Components\Repeater, you can use most of its methods, except for a few methods like inset(), grid(), columns().