Created
March 11, 2019 16:50
-
-
Save davidcomfort/7a0900b1b0c0660791efafa4ecd1f935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update page | |
# # # # # # # # # | |
@app.callback(Output('page-content', 'children'), | |
[Input('url', 'pathname')]) | |
def display_page(pathname): | |
if pathname == '/cc-travel-report' or pathname == '/cc-travel-report/overview-birst/': | |
return layout_birst_category | |
elif pathname == '/cc-travel-report/overview-ga/': | |
return layout_ga_category | |
elif pathname == '/cc-travel-report/paid-search/': | |
return layout_paid_search | |
elif pathname == '/cc-travel-report/display/': | |
return layout_display | |
elif pathname == '/cc-travel-report/publishing/': | |
return layout_publishing | |
elif pathname == '/cc-travel-report/metasearch-and-travel-ads/': | |
return layout_metasearch | |
else: | |
return noPage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment