Im working on a project in vuejs that uses "vue3-easy-data-table" Im following the style recommendations on this page.
https://hc200ok.github.io/vue3-easy-data-table-doc/features/style-customization.html
when I try to use
–easy-table-body-even-row-font-color: #fff;
–easy-table-body-even-row-background-color: #4c5d7a;
It does not take change the background color of the even rows. Even if I add !important it doesn’t make a difference and if you click on the edit with code Sandbox it doesn’t work there either.
Any idea how I could get this to show a different color for even rows as it does in the example.
2
Answers
You should check if you set the
table-class-name
andalternating
attribute to your custom style.like in the example there is this code:
Make sure to follow the docs on using
--easy-table-body-even-...
CSS properties which states: