Given row and column_id of a Datatable, how can I access styling properties of a cell from a callback? what should the Output be?
For example, changing the background color of a specific cell.
Given row and column_id of a Datatable, how can I access styling properties of a cell from a callback? what should the Output be?
For example, changing the background color of a specific cell.
Ok, I figured it out.
callback property is ‘style_data_conditional’ and the following should be return in the callback function (simplified example):
style_condition = [
{
'if': {
'column_id': 'col_name',
'row_index': 0
},
'backgroundColor': 'green',
}
]