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:Jump to solution
ahh ok, you are using a Edit page..
->recordUrl(null)->recordAction('view')
worked?...4 Replies
$table->recordAction('view')
?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
ahh ok, you are using a Edit page..
->recordUrl(null)->recordAction('view')
worked?Yes, thank you.