FilamentF
Filament3y ago
hgms

Help with getTableRecordClassesUsing

I'm trying to add some conditional classes to my table rows and for some reason I can't get it to work. The classes appear on the table row, and if I use the classes on other elements in the UI it does render properly (so tailwind is compiling it). I've tried a bunch of configurations from the protected method and ultimately stripped it down to as simple a setup as possible, but it does not render the orange border. Is there something I'm missing or doing wrong? Thank you.

protected function getTableRecordClassesUsing(): ?Closure
{
    return fn (Model $record) => 'border-l-2 border-orange-600 dark:border-orange-300';
}
image.png
Was this page helpful?