F
Filament12mo ago
core

How to place Action Button on Resource Form by the Delete Button?

I have the following Action in side a form, how can I add the button along side the Delete button?
return $form->schema([
Forms\Components\Group::make()
->schema([

Forms\Components\Section::make('Recipe Info')
->schema([
Forms\Components\Actions::make([
Forms\Components\Actions\Action::make('export PDF')
->label('PDF')
->color('success')
->url(fn (Recipe $record) => route('pdf', $record))
->openUrlInNewTab(),
]),
return $form->schema([
Forms\Components\Group::make()
->schema([

Forms\Components\Section::make('Recipe Info')
->schema([
Forms\Components\Actions::make([
Forms\Components\Actions\Action::make('export PDF')
->label('PDF')
->color('success')
->url(fn (Recipe $record) => route('pdf', $record))
->openUrlInNewTab(),
]),
2 Replies
Solution
core
coreOP12mo ago
great thanks

Did you find this page helpful?