F
Filament3mo 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'),
])
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?
0 Replies
No replies yetBe the first to reply to this messageJoin