F
Filament3mo ago
morty

Struggling on the simplest thing :( - How do I make a table row clickable to a modal view page?

I have a resource with a modal view page. That works fine. However, I can't seem to figure out how to make the clickable table row open this modal instead of the edit page. Can someone help please?
Solution:
ahh ok, you are using a Edit page.. ->recordUrl(null)->recordAction('view') worked?...
Jump to solution
4 Replies
LeandroFerreira
LeandroFerreira3mo ago
$table->recordAction('view') ?
morty
morty3mo ago
tried that, also tried using ->recordUrl(fn() => AccountNoteResource::getUrl('view')) but that doesn't work either. It still navigates to the edit page. Ah ha, got it. Had to do this: ->recordUrl(null)
Solution
LeandroFerreira
LeandroFerreira3mo ago
ahh ok, you are using a Edit page.. ->recordUrl(null)->recordAction('view') worked?
morty
morty3mo ago
Yes, thank you.