Closed michaelbabyn closed 1 year ago
Behavior is confirmed as incorrect. Furthermore, seems like header_index: 0
gets processed in such a way as to apply the style to all header rows instead of just 0
(the top one).
header_index: 0
Is there an update to this bug? I am experiencing the same issue:
unmerged headers
merged headers
Exactly same problem here :/ Looks like it does not work.
I have the same problem. Any suggestions are welcome. I'm using dash-table==4.9.0.
Yesterday I tried and it worked for me so maybe there was some fix done recently.
Same issue here - not looking to color, just align center instead of the default right
style_cell_conditional = [
{
'if': {
'column_id': 'merged_column_title',
'header_index': 0
},
'textAlign': 'center'
},
]
I was also having the same issue and the following snippet didn't work for me:
style_header_conditional = [ { 'if': {'column_id': col, 'header_index': 0}, 'textAlign': 'center' } for col in ['column_1',] ],
I had to resort to positional CSS selectors for styling these:
#table tbody>tr:nth-of-type(1)>th:nth-of-type(2){ text-align:center !important; }
I also encountered this problem - interested in any progress on the issue. Thanks.
I also encountered this problem - interested in any progress on the issue. Thanks.
The CSS styling works fine for now. You can check my example above.
I am also experiencing this issue!
I'm also experiencing this issue! Any updates?
Is there any way to fix that?
almost one year later, any word on a fix? even the ability to use header_index would be extremely helpful!
@merge-dup-headers-fix-plz cute name 😉 This repo is obsolete, dash-table has been merged into the main dash repo. And the issue has been reported again there https://github.com/plotly/dash/issues/1877 so I'll close this issue. It hasn't yet bubbled up to the top of the queue for someone at Plotly to address, but we'd welcome a PR to address it!
Actually I think I spoke too soon, and https://github.com/plotly/dash/issues/1877 was already solved by https://github.com/plotly/dash/pull/1968
There may be some confusion around header_index
- this is actually the row within the headers; the column must be specified by column_id
it looks like things go out of alignment after the first merged column