F
Filamentβ€’13mo ago
hdaklue

getTableRecordActionUsing() doesn't disable record click to edit

Hello, this method doesn't work on a specific resource protected function getTableRecordActionUsing(): ?\Closure { return null; }
11 Replies
Dennis Koch
Dennis Kochβ€’13mo ago
It needs to be on the List Page
hdaklue
hdaklueβ€’13mo ago
@Dennis Koch it is already and the exact same code working with other resources. I'm pulling ma head πŸ˜„ also, cleared the cache, re built npm
hdaklue
hdaklueβ€’13mo ago
Dennis Koch
Dennis Kochβ€’13mo ago
Why is there a table() method on that class?!
hdaklue
hdaklueβ€’13mo ago
I leave the main Resource Class for just basic methods and separate each on it's own class. Table in the List Class, Create and Edit Forms each on their separate page
Dennis Koch
Dennis Kochβ€’13mo ago
So is this a Resource or a List Page?
hdaklue
hdaklueβ€’13mo ago
extends ListRecords
Dennis Koch
Dennis Kochβ€’13mo ago
it is already
Here you say it's a List Page.
I leave the main Resource Class for just basic methods and separate each on it's own class.
Here it sounds like a resource though. Hm. Is the method executed?
hdaklue
hdaklueβ€’13mo ago
yes, and every other method is working fine, getTableFiltersLayout() , getTableRecordsPerPageSelectOptions()
Dennis Koch
Dennis Kochβ€’13mo ago
Is this Filament v2? I am still confused why there is a table() method πŸ˜… How do you tell, that it doesn't work? I think you also need to overwrite getTableRecordUrlUsing() if you want to disable clickable rows
hdaklue
hdaklueβ€’13mo ago
That works πŸ‘ cause I removed the table(Table $table) from the resource class. for my personal convention I try to keep everything related to List, Create, Edit classes.
Want results from more Discord servers?
Add your server
More Posts