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!
Solution:Jump to 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
filament/packages/panels/src/Resources/Pages/ListRecords.php at 3.x...
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
14 Replies
Try ->recordUrl(false)
Hi @awcodes, still not working for global
Maybe also add ->recordAction(false|null)
On my phone at the moment so can’t do a true source dive.
No worries, appreciate your reply 🙂 however, still not working 🥹
RecordUrl(false) should disable. There must be something else causing a conflict in your code base.
It's working for individual tables where I added
->recordUrl(null)
, but I'm trying to make it as default for all tables to not repeating it in every table. For now I added it in all tables haha 😅I would expect it to work with configureUsing() too though.
Same here, other setup I made is working, only this
recordUrl
is not working as expected. I also tried removing other configuration I made for the table to see if it's a conflict, but still no luck.Can you share the specific table schema that isn’t working?
Sorry, I don't understand, but this is what i added in my AppServiceProvider boot method
I'm expecting it to disable all table components' row click view / edit
Right, but global configs can be over written at the table level for the resource, that’s why I’m asking for the code of the particular resource table that isn’t working.
Oh sorry, It's not working in all of my resource
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
filament/packages/panels/src/Resources/Pages/ListRecords.php at 3.x...
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
I see, make sense. Thank you for pointing this out