FilamentF
Filament2y ago
Jap

Conditional visibility of Repeater extraActions

Repeater::make('records')
   ->extraItemActions([
         Action::make('sendEmail')
              ->visible(fn ($record, $state) => dd($record, $state)
                    //condition here visible only in specific records in the repeater
                )
              ->icon('heroicon-m-envelope'),
     ])

how can i customize the visiblity of extraActions based on the value of the records in the repeater?
Was this page helpful?