I have a multi-tab
, subtabs
dash application. I'd like to be able to save/persist the state of the components in different subtabs when switching between them. These components are dropdown, input, graph, slider, daterange
etc.
I use the persistence property of the components which works for input, dropdown, slider but not for Graph. I'd like to persist the state of dcc.Graph
component which renders plotly visualization.
dcc.Tabs(
id="tabs",
vertical=True,
persistence=True,
children=[
dcc.Tab(label="Tab 1", value="tab1"),
dcc.Tab(label="Tab 2", value="tab2",
children=[dcc.Tabs(id="subtabs",
persistence=True,
children=[dcc.Tab(label='a', value='ab'),
dcc.Tab(label='z' value='wv')
],
)
]),
],
)
Is there a native solution in dash that saves the state of the app? Thx.