Custom Column Clickable - Prevent

Hi is there a way to prevent oppening edit action when i click on FeatureColumn, but still keep functionality to open edit action when i click on rest?
No description
4 Replies
Dimitar Papazov DEV
GitHub
I'm trying to disable a row click on a relation manager but it's no...
Hi, I have a relation manager and I'd like to disable the row click to edit the record. I'm using: public function table(Table $table): Table { return $table ->recordUrl(fn () => null...
Dimitar Papazov DEV
GitHub
How to disable clickable row ? · filamentphp filament · Discussion ...
i tried protected function getTableRecordUrlUsing(): ?Closure { return null; } on my resource, seems not working.
SuperUserDo
SuperUserDoOP2mo ago
Yeah, knew that for whole row, I was just looking for one column not be clickable...
dissto
dissto2mo ago
If i am not mistaken. You should be able to use a closure and inject in the record:
$table
->recordAction(function (Model $record){
return $record->isFeatured() ? null : 'view';
})
$table
->recordAction(function (Model $record){
return $record->isFeatured() ? null : 'view';
})
Want results from more Discord servers?
Add your server