Hello, i use dash table in ltr page direction without problem but when I set direction to rtl, table is not working properly (headers not showing, scrolling too laggy, column width too wide).
table in ltr:
table in rtl:
here is my sample code:
from dash import Dash, dash_table, html
from plotly.express import data
df = data.stocks()
table_default_params = {
“row_selectable”: “single”,
“page_size”: 50,
“style_table”: {
“maxHeight”: “313px”,
“zIndex”: 0,
“maxWidth”: “500px”,
},
“fixed_rows”: {“headers”: True},
“style_cell”: {
“minWidth”: “120px”,
“width”: “120px”,
“maxWidth”: “120px”,
“overflow”: “hidden”,
“textOverflow”: “ellipsis”,
“whiteSpase”: “nowrap”,
},
“tooltip_duration”: None,
}
app = Dash(name)
app.layout = html.Div(
id=“table-container”,
children=dash_table.DataTable(
data=df.to_dict(‘records’),
columns=[{‘id’: c, ‘name’: c} for c in df.columns],
**table_default_params,
),
style={“direction”: “rtl”},
)
if name == ‘main’:
app.run(debug=True