© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
21 replies
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';
}
protected function getTableRecordClassesUsing(): ?Closure
{
    return fn (Model $record) => 'border-l-2 border-orange-600 dark:border-orange-300';
}
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

display count matching getTableRecordClassesUsing
FilamentFFilament / ❓┊help
3y ago
Dynamic color extracted of a value in getTableRecordClassesUsing()
FilamentFFilament / ❓┊help
3y ago
Help with Dashboard
FilamentFFilament / ❓┊help
16mo ago
Help with infolist
FilamentFFilament / ❓┊help
17mo ago