F
Filamentβ€’2y 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β€’2y ago
It needs to be on the List Page
hdaklue
hdaklueOPβ€’2y 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
hdaklueOPβ€’2y ago
Dennis Koch
Dennis Kochβ€’2y ago
Why is there a table() method on that class?!
hdaklue
hdaklueOPβ€’2y 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β€’2y ago
So is this a Resource or a List Page?
hdaklue
hdaklueOPβ€’2y ago
extends ListRecords
Dennis Koch
Dennis Kochβ€’2y 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
hdaklueOPβ€’2y ago
yes, and every other method is working fine, getTableFiltersLayout() , getTableRecordsPerPageSelectOptions()
Dennis Koch
Dennis Kochβ€’2y 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
hdaklueOPβ€’2y 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