getTableRecordUrlUsing a new tab
https://filamentphp.com/docs/2.x/tables/getting-started#record-urls
I have this but want to open the url in a new tab (links to an external site).. can I do so or do I have to define
->url()
and ->openUrlInNewTab()
on every column?5 Replies
maybe you can use
redirect(route('your_route))
?This is View and EditAction, right? Can't you set
->openUrlInNewTab()
on those?
links to an external siteWhat's the code for this?
its a clickable row, I am not linking to an action but an external url
thats why I want it in another tab
Use
getTableRecordActionUsing()
and use an action with url()
and openUrlInNewTab()
do you have an example on how you would do this? I cant figure out how to do it using an Action
it works as a table action now but not using the clickable row
and the check is as you said, which works when pressed directly as a normal action.. but not when clicking on the row/record
the action
it does work when I am using the commented action (dd's on click)
but when commented out it doesnt do anything
except when just pressing the action normally, then it works as expected
php/laravel cant open a new tab
might just keep the current url and add an action to open in new tab..