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,
})
->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;
}
.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'
1 Reply
ddoddsr
ddoddsrOP2w ago
bump align right some rows?

Did you find this page helpful?