dash_on_flask
dash_on_flask copied to clipboard
nav bar for both flask pages and dash pages
Hello wondering how you would go about making a nav bar for both you flask pages and you dash pages.
I have a nav bar in my dash app that uses some call backs for interaction.
possible thoughts are: could i import a dash layout into a template?
could i {% extends "base.html" %} in a dash app tried in the index_string?
currently I'm just tring to make the same nav bar in both dash and in flask
I thought I had this settled by adding the html nav bar in the dash index_string but I just realized that it only gets initialized once at when registering the dashapp. I just need the login logout message to change so i guess i have to remake it in dash unless theres a way to just put html in a dash component and it render it.
Edit not a min later i found out you cant with Dash.interpolate_index https://dash.plotly.com/external-resources