I have a Datatable build with Dash Python. I am trying to set up the border-left for some columns in style_data_coditional. What I notice is that I am not able to set the border-left nor border-right. Although the border-top and border-bottom are set successfully in the callback function.
run_condition1 = {
“if”: {
“column_id”: id,
“filter_query”: “{” + str(id) + “} = ‘Run (1)\u0020’”,
},
“color”: “#5e9e4c”,
“fontWeight”: “bolder”,
“border-top”: “2px solid red”,
“border-bottom”: “2px solid red”,
“border-left”: “2px solid red”,
“border-right”: “2px solid red”,
}
style_data_conditional.append(run_condition1)

This is the CSS in Chrome developer tool window:
I can manually add the border-left or border-right to element.style and it shows up in the datatable.


Does anybody know what’s going on here?
1 post - 1 participant
