© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
5 replies
jmrufo

Several recordClasses

Hi guys.

I would like to apply several css styles according to the added rules but I can't find a way to be able to do more than one check with recordClasses.

If I create this rule it works perfectly:

->recordClasses(
fn (Programming $record) => $record->canceled == 1 ? 'my-line-bg-canceled' : null
)

But I would also like to add this other one that checks another property:

->recordClasses(
fn (Programming $record) => $record->incident == 1 ? 'my-line-bg-incident' : null
);

Can someone tell me if this is possible in filament.

Thanks to all
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

recordClasses not applying
FilamentFFilament / ❓┊help
17mo ago
Table recordClasses dark mode
FilamentFFilament / ❓┊help
2y ago
Is recordClasses working in V3?
FilamentFFilament / ❓┊help
3y ago
Highlight changed/added rows using $table->recordClasses
FilamentFFilament / ❓┊help
13mo ago