dash_on_flask icon indicating copy to clipboard operation
dash_on_flask copied to clipboard

nav bar for both flask pages and dash pages

Open CupOfGeo opened this issue 2 years ago • 1 comments

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

CupOfGeo avatar Oct 30 '21 20:10 CupOfGeo

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

CupOfGeo avatar Nov 06 '21 00:11 CupOfGeo