FilamentF
Filament14mo ago
Ava

Section->headerActions->Select

Am I missing this documentation somewhere?
Solution
You could create a custom action that extends a Forms\Components\Action, then it would work...

<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
    use HasSelect;

    protected function setUp(): void
    {
        parent::setUp();

        $this->view('filament-actions::select-action');
    }
}


Section::make()
  ->headerActions([
      \App\Actions\MySelectAction::make('hi')
      ->options([
          'option1' => 'Option 1',
      ])
  ])
Was this page helpful?