How to change the colors of the columns of the table builder widget ?
I would like to change the colors so that instead of putting a filter, I would like to change the color of the column
15 Replies
Try
extraAttributes(['class' => 'bg-gray-100']
. Make sure you have a custom Tailwind CSS build or use classes that are in Filaments JIT versionor should I add this function, I am in a resource ?
On the column, if that's where you want to change the color.
what is the function to get some columns from our tableBuilder in a resource ?
What do you mean by "Get a column from the table builder"? You define columns of the table, so that's where it goes
excuse me I meant a row in my table, I would like to change the color of my row ?
Filament
Getting started - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
I added this function in my resource but I notice no change
You will need to add it to the list page not the primary resource
even when adding it to my page I have no color change
Are the classes applied in the html?
And are you using the table within admin panel, or table outside admin?
None of my classes are called in my console. I am in the ListRecords of my resource.
You don't return anything from the Closure
thanks