awcodes / filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.
MIT License
201 stars 43 forks source link

TableRepeater & Form Actions #54

Closed Cannonb4ll closed 1 year ago

Cannonb4ll commented 1 year ago

Filament Version

v3

Plugin Version

v2.0.0

PHP Version

PHP 8.2

Problem description

When using the new actions feature inside a table repeater:

Forms\Components\Actions::make([
    Forms\Components\Actions\Action::make('resetStars')
        ->icon('heroicon-m-x-mark')
        ->color('danger')
        ->requiresConfirmation()
        ->action(function () {
        }),
])

This breaks the repeater when using columnWidths(): Method Filament\Forms\Components\Actions::getName does not exist.

Expected behavior

To render the action buttons.

Steps to reproduce

Create a tablerepeater, use the columnWidths() method, and add this:

Forms\Components\Actions::make([
    Forms\Components\Actions\Action::make('resetStars')
        ->icon('heroicon-m-x-mark')
        ->color('danger')
        ->requiresConfirmation()
        ->action(function () {
        }),
])

Reproduction repository

No response

Relevant log output

No response