How to get several actions in the table in a dropdown? (Using the Admin Panel)

How to get several actions in the table in a dropdown? I have:
->actions([
Tables\Actions\Action::make('pdf1')
->label('Candidato')
->tooltip('PDF contiene nombre, apellidos y email.')
//->url('/pdf/60/0'),
//->color('success')
->url(function (Applicant $record) {
return '/'.App::getLocale().'/pdf/' . $record->id . '/1/0';
})
->icon('heroicon-o-document'),

Tables\Actions\Action::make('pdf2')
->label('SCG cliente')
->tooltip('PDF no contiene datos privados.')
//->url('/pdf/60/0'),
//->color('success')
->url(function (Applicant $record) {
return '/'.App::getLocale().'/pdf/' . $record->id . '/2/0';
})
->icon('heroicon-o-document'),

]);
->actions([
Tables\Actions\Action::make('pdf1')
->label('Candidato')
->tooltip('PDF contiene nombre, apellidos y email.')
//->url('/pdf/60/0'),
//->color('success')
->url(function (Applicant $record) {
return '/'.App::getLocale().'/pdf/' . $record->id . '/1/0';
})
->icon('heroicon-o-document'),

Tables\Actions\Action::make('pdf2')
->label('SCG cliente')
->tooltip('PDF no contiene datos privados.')
//->url('/pdf/60/0'),
//->color('success')
->url(function (Applicant $record) {
return '/'.App::getLocale().'/pdf/' . $record->id . '/2/0';
})
->icon('heroicon-o-document'),

]);
` How can i get this in a dropdown in each table row please?
2 Replies
Falk Maria Zeitsprung
Falk Maria ZeitsprungOPβ€’2y ago
Thank you very much!! I couldnt find this in the docs. πŸ‘
Want results from more Discord servers?
Add your server