Disable editing in table row
Hello everyone. I have a condition that disables the editing method of a record. It is working fine, but I noticed that if I click on other columns in the row it edits normally. Is there a way to disable this editing in the row where editing is disabled? Thanks.
4 Replies
public static function table(Table $table): Table
{
return $table
->recordAction(null)
In this case it will disable all rows in the table. If I'm not mistaken. I wanted to disable only the rows where it has disabled.
If you still have action buttons, you can just click the action still can't you?
Yes, I agree, but if possible, I would like to keep the behavior of clicking on the line and editing, as this is very intuitive for the client. And remove this behavior only in conditioned lines. Would this be possible?