F
Filament13mo ago
Emaz

Disable edit on row

I know this is possible, I once saw it in the docs but I cannot find it. How can I disable the default behavior that makes clicking on the entire row go to the edit route?
4 Replies
Emaz
Emaz13mo ago
Thank you so much. I was pretty sure that would solve my problem but it did not. I started a project using Vemto because I had a TON of models and relationships so I let it generate all the code for me, including Filament. Unfortunately it only does Filament 2. So I manually upgraded to V3 and everything is working. It's way too late to start fresh. Except the entire row is clickable for edit. That in turn is causing other issues. And I can NOT find why the row is clickable, there's no recordUrl method in my code. Does Filament V3 do it by default? I can't seem to turn it off. 😩
Emaz
Emaz13mo ago
I passed it a null and it did turn off the edit URL, thank you. It didn't solve my real issue though. Which is here in case you're curious. I can't seem to set the row color despite trying everything such as a custom theme etc. I though maybe the anchor tag for edit was adding to the problem. https://github.com/filamentphp/filament/discussions/9108
GitHub
Is recordClasses broken in v3? · filamentphp filament · Discussion ...
` public static function table(Table $table): Table { return $table // ->recordClasses(fn (Model $record) => match ($record->priority) { // 'Urgent' => 'line-through border-...
cheesegrits
cheesegrits13mo ago
Yeah, sorry, I meant to add that setting recordUrl(null) will disable the behavior entirely.
Want results from more Discord servers?
Add your server