← Back to Plugins
  • awcodes Table Repeater
  • awcodes Table Repeater

awcodes Table Repeater

Plugin information

by Adam Weston • 12 stars

Admin panel Form builder

An easy to use Table Repeater field.

Support

#awcodes-table-repeater on Discord

Views

656

License

MIT

Documentation

Installation

You can install the package via composer:

composer require awcodes/filament-table-repeater

Usage

This field has most of the same functionality of the Filament Repeater field. The main exception is that this field can not be collapsed.

TableRepeater::make('social')
->schema([
Select::make('platform')
->disableLabel()
->options([
'facebook' => 'Facebook',
'twitter' => 'Twitter',
'instagram' => 'Instagram'
]),
TextInput::make('handle')
->disableLabel(),
])
->columnSpan('full')

By default Table Repeater will automatically create the table headers from your schema labels. This can be overridden by simply passing an array of your desired headers to the ->headers() method.

TableRepeater::make('social')
->headers(['Platform', 'Handle'])
->schema([
...
])
->columnSpan('full')

Theming

If you are using a custom theme for Filament you will need to add this plugin's views to your Tailwind CSS config.

content: [
...
"./vendor/awcodes/filament-table-repeater/resources/views/**/*.blade.php",
],