Black Lives Matter. Please consider donating to Black Girls Code today.

DashTable VERY Broken

Hey everyone,

Sorry for the vague title but I am having multiple problems styling my DashTable DataTable. Very sorry for the list format as well, just trying to get to the point. Here is the code summary:

columns = an array of dicts containing {id, name, and type}

table_values = a pandas data frame, very straight forward, no frills

table = dash_table.DataTable(
            fixed_rows={'headers': True, 'data': 0},
            # filter_action="native",
                'maxHeight': '400px',
                'overflowY': 'scroll',
                #'overflowX': 'scroll',
                # 'width': '90%',
                'font-family': 'Sans-Serif',
                'font-size': '12px',
                'fontWeight': 'bold'
                'font-family': 'Sans-Serif',
                'font-size': '11px',
                'height': 'auto',
                'minWidth': '180px', 'width': '180px', 'maxWidth': '180px',
                'whiteSpace': 'normal',
                {'if': {'column_type': 'numeric'},
                 'width': '100px'},

Issue list:

  1. My Y-Scroll doesnt have a scroll bar… just the frame of the scroller

  2. The X-Scroll is already there? Uncommenting “‘overflowX’: ‘scroll’,” just adds a second scroll bar

  3. Enabling the filter_action adds the filter row but it is about 2 pixels in height. It is that thin middle strip in the image below

  4. If I change ‘fixed_rows’ to ‘fixed_columns={‘headers’: True, ‘data’: 1}’, then the only columns that show in the table are the ones selected to be fixed

  5. Minor, but kind of annoying and no matter what I change I cant fix this, none of my tables have the left hand boarder? Not a clue as to why.

Help on any of these would be greatly appreciated.

The page structure is essentially dbc.Container->dbc.Row->html.Center->html.Div->Table

I also saw on this forum to add this css?

.dash-spreadsheet.dash-freeze-left {
    max-width: none !important;

I have been playing with positioning, css, table options for the past 6 hours. I am lost as to where these issues are coming from.

Thank you!

Bumping for visibility. Still cannot fix any of these issues :thinking:

I have discovered most of these issues occur from the fixed_columns and fixed_rows features. Still cant figure out why the left boarder of my table is hidden