table custom css
Hello,
It is possible to apply a custom style to a Filament table?
16 Replies
mmm sorry not understand. I have grid table like in attachment, and need not show the round border around the column
if you add
my-width-class
via extraAttributes, you need to add this class in the custom theme css fileok all clear!!!! But i cant use extraAttributes for entire table but only for column, what should i use for entire table?
fi-ta
is used to represent classes used in the Table Builder package
inspect the element in your browser and override what you needI don't have to apply the CSS class to all tables but only to a specific table
In detail, I am creating a page with a grid table that simulates a product catalog and I wanted to customize this grid, the other tables is ok
maybe overriding this view: https://filamentphp.com/docs/3.x/panels/resources/listing-records#custom-list-page-view.
or creating a div on this page outside the table using render hooks.
OK I'll try. thnks mate
i create a custom view in listing record
and add this code in view
but the div 'custom-table' is behind the table
this is the result...try to add background yellow
So it worked. Look at the corners, they are yellow. The reason the whole thing isn’t yellow is because the other elements have a background set to white.
Your vision is really good, @awcodes 😅
Eheheheheh the code works...but not work for my problem, change background color of table or in general customize css of table
use custom view of list record is not the right way
Is this the only table on the page?
yes
I'm trying to create everything custom without using resources
like this example https://demo-learning-management-system.filamentexamples.com/
but I don't know if it's the best way
I would think the page would have a class name on the body or page wrapper element that has the page name. Should be able to use that.