Widget Table

I'd like to create a modal that allows me to open the form. What can I do?
class TracksEvent extends TableWidget
{
    protected static string $view = 'filament.resources.event-resource.widgets.tracks-event';

    public ?Event $record = NULL;
    protected int|string|array $columnSpan = "full";

    public function addTracks()
    {

    }

    protected function getTableHeaderActions(): array
    {

        return [
            Action::make('import_playlist')
                ->label(__('event-resource.widget.tracks-event.action.import_playlist'))
                ->modalHeading("Ajouter des dates d'absences")
                ->requiresConfirmation()
                ->button()
                ->action('addTracks')
                ->form([
                    Select::make('tracks.playlist')
                        ->relationship('tracks')
                        ->required(),
                ]),
        ];
    }
Solution
What’s the issue with that?
Was this page helpful?