FilamentF
Filament11mo ago
ddoddsr

I'm trying to use recordClasses() to right-text some rows in a table

->recordClasses(fn (Model $record) => match ($record->type) {
  'incoming' => 'text-right',
  default => null,
})

Also tried 'incoming' => 'dd-text-right',
and in existing custom theme:
.dd-text-right {
    @apply text-right;
}

My other theme entry is still working but not the above

I see the function working with these values:
'incoming' => 'bg-gray-50 dark:bg-gray-700', and 'outgoing' => 'bg-gray-250 dark:bg-gray-900'
Was this page helpful?