Select Table record for bulk action on click

I want to select a record when clicked on, the CanSelectRecord trait only has a deselect all method, but no select one.

I have tried
protected function getTableRecordActionUsing()
{
      return fn($record) => 
      $this->selectedTableRecords[] = $record;
}


But this threw an error. Any help is appreciated
Was this page helpful?