filament/tables
v3.2.61
^11.0
^3.4
^8.2
In $form
the Repeater works well in ->createOptionForm
but in does not work in $table
->filters
here is a video example:
in $form
the Repeater work in ->createOptionForm
public static function form(Form $form): Form
{
return $form
->schema([
Select::make('color_id')
->label(__('Colors'))
->default('blue')
->native(false)
->selectablePlaceholder(false)
->createOptionForm([
Repeater::make('colors')
->simple(
ColorPicker::make('color_name')
->required(),
),
])
->createOptionUsing(function (array $data): string {
return 'Test';
})
->options([
'blue' => __('Blue'),
]),
]);
}
but in $table
->filters
Repeater does not work in ->createOptionForm
public static function table(Table $table): Table
{
return $table
->columns([])
->filters([
Filter::make('create_colors')
->form([
Select::make('color_id')
->label(__('Colors'))
->default('blue')
->native(false)
->selectablePlaceholder(false)
->createOptionForm([
Repeater::make('colors')
->simple(
ColorPicker::make('color_name')
->required(),
),
])
->createOptionUsing(function (array $data): string {
return 'Test';
})
->options([
'blue' => __('Blue'),
]),
]),
], layout: FiltersLayout::AboveContent)
->actions([])
->bulkActions([]);
}
Repeater should work well with ->createOptionForm
in $table
->filters
cd filament-table-builder-repeater-on-filters
go to app/Filament/Resources/TestResource
check the $table
->filters
https://github.com/devhoussam1998/filament-table-builder-repeater-on-filters
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too