From d5069e8aa4c4b0d187d22ffe53b1722c17563a66 Mon Sep 17 00:00:00 2001 From: Hans Kallekleiv Date: Tue, 19 Nov 2019 14:47:43 +0100 Subject: [PATCH] Add temporary dash table workaround (#152) --- webviz_config/templates/webviz_template.py.jinja2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webviz_config/templates/webviz_template.py.jinja2 b/webviz_config/templates/webviz_template.py.jinja2 index 073f2dca..5c817170 100644 --- a/webviz_config/templates/webviz_template.py.jinja2 +++ b/webviz_config/templates/webviz_template.py.jinja2 @@ -14,6 +14,7 @@ from pathlib import Path, PosixPath import dash import dash_core_components as dcc import dash_html_components as html +import dash_table from flask_talisman import Talisman import webviz_config from webviz_config.common_cache import CACHE @@ -106,6 +107,12 @@ else: className="styledButton", {%- endif -%} children=[ + {%- if loop.first -%} + html.Div( + id="dash-issue-#1010", + style={"display":"none"}, + children=dash_table.DataTable()), + {%- endif -%} {% for content in page.content -%} {%- if content is string -%} dcc.Markdown(r"""{{ content }}""")