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

What Operator can I use for NOT BLANK in String/Text type of DataTable Conditional Formatting?

$
0
0

Hi there,
I am trying to set a conditional logic in DataTable that the cell is NOT blank in the conditional formatting logic.
The logic operator is blank is working perfect, however, when I was trying to use != blank or ne blank for the string/text type, none of these is working. Can anybody please help how to set an opposite way of the logic “NOT BLANK” meaning there are at least 1 letter in there?

style_data_conditional=( [{
                          'if': {
                                'filter_query': '({num-col1} > {num-col2}) and ({str_col} != blank)',
                                'column_id': 'str_col'
                                },
                          'backgroundColor': 'tomato',
                           'color': 'white'
                          } 
                       ] )

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images