✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Extract color from hidden column in datatable

Is it possible to set the background color of a cell with the value contained in a hidden column? I tried this, but it didn’t work (there is a column in the datatable called “bg_color” that contains hex color values):

style_data_conditional = [
{
“if”:{
“column_id”:“foo”
}, “background_color”:"{bg_color}"
}