Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Preserving state and selected inputs of a previous tab

Is there a similar feature for preserving Tabs state too ?

Is your tab content generated via a callback or as children in your layout?
I use the latter and don’t find that the Tab state is lost

1 Like

Each tab content is generated via a callback from an input (dropdown).

Hey there,

I just answered a similar post, maybe that could help you out: How to update/reload layout

As @adi mentionned, you can either have layout WITHIN the tab (therefore keeping the layout state) or OUTSIDE the tab (meaning you re-generate the whole layout everytime, amking it harder to keep the data)