FilamentF
Filament15mo ago
Mook

Bulk actions which is only visible when 2 rows are selected

I'm trying to make a bulk action appear only when 2 table rows are selected. I'm using the visible function to try and achieve this:

->visible(fn ($livewire) => $livewire->selectedTableRecords == 2)

But this livewire array always seems to be empty no matter how many rows are selected?

I'm stuck, please help.
Was this page helpful?