Add new openRecordUrlInNewTab function to docs

This commit is contained in:
dmason30
2024-05-23 00:13:00 +01:00
parent 5d195a15af
commit 15849fc39e
+12
View File
@@ -128,6 +128,18 @@ public function table(Table $table): Table
In this example, clicking on each post will take you to the `posts.edit` route.
You may also open the URL in a new tab:
```php
use Filament\Tables\Table;
public function table(Table $table): Table
{
return $table
->openRecordUrlInNewTab();
}
```
If you'd like to [override the URL](columns/getting-started#opening-urls) for a specific column, or instead [run an action](columns/getting-started#running-actions) when a column is clicked, see the [columns documentation](columns/getting-started#opening-urls).
## Reordering records