FilamentF
Filament16mo ago
Carlo

How do you disable $table->recordUrl(null) globally in all tables?

I'm trying to disable row click for all of my tables as default, but it seems to not work. Can please anyone correct me. Thanks!

Table::configureUsing(
            fn (Table $component) => $component->recordUrl(null)
        );
Solution
I don’t think that configureUsing will work at this point because the ListRecords class sets the recordUrl parameter after configureUsing

https://github.com/filamentphp/filament/blob/3.x/packages/panels/src/Resources/Pages/ListRecords.php

check makeTable method
GitHub
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
Was this page helpful?