Is there any way to set the priority with which datatable styling is applied? For example I am trying to have black borders along the header and the first column and no borders elsewhere. I can achieve this by having in style_data_conditional
:
{
'if': { 'column_id': col},
'border': '0px solid white',
}
for col
being every column except the first, as well as:
{
'if': {'column_id': first_col},
'border': '1px solid black',
}
and in style_header
:
{
'border': '1px solid black',
}
However the 0 weight borders in the body of the table are overwriting the black borders that overlap with the header. I was able to fix this problem happening with on the left overlap with the first column by reordering the style_data_conditional
list, but I’m not sure how to do the same for the header?