plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
419 stars 74 forks source link

fixed_rows cannot work when overflow-y. Header stays during scroll to right. #810

Open sandrayin opened 4 years ago

sandrayin commented 4 years ago

Turned on fixed_rows, but when my table has overflow horizontally, the header does not follow when scroll to the right. I have to turn off fixed_rows in order for the headers to move together with the data, but I need to fix my headers also also the first column. I tried to add fixed_columns but headers are frozen.

`dtable.DataTable( id='g_table', columns=[{"name": [a, b, c], "id": d} for a,b,c,d in tt_columnslist], data=sort.to_dict('records'), sort_action="native", sort_mode="single", merge_duplicate_headers=True,

fixed_columns={'headers': True, 'data': 1},

               fixed_rows={'headers': True, 'data':0},
               style_cell={'width': '95px'},
               style_table={'minWidth':'95%', 'maxWidth': '95%', 'overflowX': 'auto'},
               style_header={'overflow':'hidden'},
               virtualization=True,
               page_action='none',
               style_data_conditional=style_data_conditional,
               tooltip_data=tooltip_data,
           ),`

Thanks for your interest in Plotly's Dash DataTable component!!