F
Filament15mo ago
blubs09

Remove edit row on click function

In Filament 3.0 how do I remove the edit row in a table when I click it? I don't want that function. I am trying to allow a click in this section without it going to edit after I click it- return $table ->columns([ Tables\Columns\Column::make('Create Flyer') ->view('admin.columns.downloadSingleEventPDF'),
Solution:
I'm not sure... there's also ->recordUrl(null) you could try
Jump to solution
6 Replies
Patrick Boivin
Patrick Boivin15mo ago
Try ->recordAction(null) on the Table
blubs09
blubs09OP15mo ago
I tried that- Tables\Columns\Column::make('Create Flyer') ->view('admin.columns.downloadSingleEventPDF') ->recordAction(null), But I get this error- Method Filament\Tables\Columns\Column::recordAction does not exist.
Patrick Boivin
Patrick Boivin15mo ago
It should go on the Table
public static function table(Table $table): Table
{
return $table
->columns([
// ...
])
->recordAction(null)
// ...
}
public static function table(Table $table): Table
{
return $table
->columns([
// ...
])
->recordAction(null)
// ...
}
blubs09
blubs09OP15mo ago
I did do that as well and it still didn't work. The only thing that I have gotten to work is actually called return false; on my click event.
Solution
Patrick Boivin
Patrick Boivin15mo ago
I'm not sure... there's also ->recordUrl(null) you could try
blubs09
blubs09OP15mo ago
that's what worked!! you are awesome!!! Thanks!
Want results from more Discord servers?
Add your server