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
It needs to be on the List Page
@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
Why is there a
table()
method on that class?!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
So is this a Resource or a List Page?
extends ListRecords
it is alreadyHere 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?
yes, and every other method is working fine,
getTableFiltersLayout()
, getTableRecordsPerPageSelectOptions()
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 rowsThat 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.