I want to change the background color of the column header of the el-table but it seems that you can only change the background for all the column headers of the table. Is there a way to do this? Also, I need to change the background dynamically. I am using vue.js.
tried to do this but header-class-name is not an attribute of el-table-column so it will not work.
<el-table-column prop="columnName" label="Column Name" :header-class-name="customHeaderClass"></el-table-column>
css:
.custom-column-header {
background-color: #000000;
}
I cant see your function customHeaderClass,I will define it like below