import modal description
Hello all,
Please I want to make import action like the image attachment, but wen I add modal description then (Download CSV file) disappear, Is there any way to keep it?
1 Reply
Copy Past :
\Filament\Forms\Components\Actions::make([
Action::make('get_template')
->icon('tabler-file')
->label(__('Download Template Xlsx / Csv File'))
->outlined()
->link()
->color('success')
->action(function () {
return Response::download(public_path('template.xlsx'), 'template.xlsx', ['Content-Type: application/vnd.ms-excel']);
}),
]),