Skip to content

Conversation

@leek
Copy link

@leek leek commented Oct 21, 2025

Description

This PR introduces a new extraRecordLinkAttributes() method that specifically targets the <a> tags of record links, allowing developers to customize individual record links with HTML attributes.

Refs #18284

Usage

use Filament\Tables\Table;

public function table(Table $table): Table
{
    return $table
        ->recordUrl(fn ($record) => route('posts.show', $record))
        ->extraRecordLinkAttributes([
            'data-turbo' => 'false',
            'data-action' => 'navigate',
        ]);
}

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@leek leek force-pushed the leek/add-extra-record-link-attributes branch from d0d146c to cb7557b Compare October 22, 2025 04:08
@danharrin danharrin added this to the v4 milestone Oct 22, 2025
@danharrin danharrin added the enhancement New feature or request label Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pending review

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants