Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Datatable style_cell_conditional multiple column_id values for if

$
0
0

Hi, I have a quick question, how can I add more than one value for column_id within a if statement. For example, I like to style column 2, 6, and 7’s width; instead of writing 3 separate ifs with only the difference being the column_id, is it possible to do it within one if? Such as:

style_cell_conditional=[
                        {
                            'if': {'column_id': '2', '6', '7'},
                            'width': '60px'
                        }
                    ],

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images