F
Filament7mo 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
LeandroFerreira7mo ago
$table->recordAction('view') ?
morty
mortyOP7mo 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
LeandroFerreira7mo ago
ahh ok, you are using a Edit page.. ->recordUrl(null)->recordAction('view') worked?
morty
mortyOP7mo ago
Yes, thank you.
Want results from more Discord servers?
Add your server