I am trying to use some functions from Table Builder Documentation in my Resource

Hi , I am trying to use some methods from the Table Builder Documentation but it seems they are not working in Resources . I am trying to get the default ones which are there in documentation example below protected function getTableRecordClassesUsing(): ?Closure { return fn (ManualDepositEntry $record) => match ($record->status) { 'pending' => 'opacity-30', 'rejected' => [ 'border-l-2 border-orange-600', 'dark:border-orange-300' => config('tables.dark_mode'), ], 'approved' => 'border-l-2 border-green-600', default => null, }; } protected function getTableRecordActionUsing(): ?Closure { return null; } protected function getTableActionsPosition(): ?string { return Position::BeforeCells; } Any udea why this is happening or am i missing something ?
2 Replies
Dan Harrin
Dan Harrin2y ago
put them on the List page, not the resource itself
Priyank
PriyankOP2y ago
Thanks for your quick reply. It works as you said.
Want results from more Discord servers?
Add your server