change row background color
i found some things which change color for row like striped() but i want to if status == 1 this row background color should be red. just how i can give red background color for row?
14 Replies
i found it too but its not works..
i try to change default to see result but
its not works..
im using this but not works
Do you have a custom theme?
no
If you just want
bg-red-500
you can remove the shorthand function
And you need a custom themei just have table which have status value
and if this status value == 1 i want to be red background color of this column
its needed any theme?
Yes it needs a theme
And with your code it always is red. Whether it == 1 or not
yes now i know
becouse i was testing if works any way u know
can u send me a theme link?
i try to search it in plugins but there was not
just install it and next use this recordClasse right?
Yes if you create the theme correctly it will become red
okay thanks i will try
php artisan make:filament-theme
i install like that
and use this again intable
but its not works
is there any thing i should add?
Follow the whole documentation
Also you need to run
npm run build or dev
thanks its works now ❤️