I’m trying to move the “toggle columns” button from the top of the datatable to under it.
And changing the “Toggle Columns” font and in the dropdown menu.
I can’t find anything online so anything feedback is appreciated!
Here dumbed down version of my code / problem.
import dash
import dash_table
import pandas as pd
df = pd.read_csv(‘https://raw.githubusercontent.com/plotly/datasets/master/solar.csv’)
app = dash.Dash(name)
cols = [{i: i, “id”: i,‘hideable’:True} for i in df.columns]
app.layout = dash_table.DataTable(
id=‘table’,
columns=[{“name”: i, “id”: i,‘hideable’:True} for i in df.columns],
data=df.to_dict(‘records’),
)
if name == ‘main’:
app.run_server(debug=True)
1 post - 1 participant