Arts-of-coding commited on
Commit
9061fb4
1 Parent(s): 7cad39a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -14,11 +14,10 @@ app = dash.Dash(__name__, use_pages=True, external_stylesheets=external_styleshe
14
  app.layout = html.Div([
15
  html.H1('Multi-page app with Dash Pages'),
16
  html.Div([
17
- html.Div(
18
- dcc.Link(f"{page['name']} - {page['path']}", href=page["relative_path"])
19
- ) for page in dash.page_registry.values()
20
- ]),
21
- dash.page_container
22
  ])
23
 
24
  if __name__ == '__main__':
 
14
  app.layout = html.Div([
15
  html.H1('Multi-page app with Dash Pages'),
16
  html.Div([
17
+ html.Div(
18
+ dcc.Link(f"{page['name']}", href=page["path"])
19
+ ) for page in dash.page_registry.values() if page["location"] == "sidebar"
20
+ ])
 
21
  ])
22
 
23
  if __name__ == '__main__':