How to disable clickable rows in a certain table tab
Hello, I have a 'Archived' tab for the table of one of my resources, and I would like to disable clicking on the row when I am in this tab. This produces a 404 error because the view/edit page is not found for the resource since it is soft-deleted. Is this possible ?
9 Replies
You can use recordUrl with record is trashed then return null
Ok, but I'm not sure what name to use in the first argument of route(). I have an error when I follow the documentation logic π¬
Solution
With the method getUrl() of the resource its working. Thanks
Sorry just got back.
Yep, I've tried that but this is not working π¦ No errors but every row is unclickable even the one that are not trashed
Makes sense because this code either retuns null or void
But don't worry this is working
Ah yes
Oh yeah missed the return view, apologize π«
No problem, thanks for steering me in the right direction π