-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.py
41 lines (38 loc) · 1.6 KB
/
navbar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import dash_bootstrap_components as dbc
from dash import html
def create_navbar():
navbar = dbc.NavbarSimple(
children=[
dbc.NavItem(
dbc.NavLink(
[
html.I(className="fa-brands fa-github"), # Font Awesome Icon
" ", # Text beside icon
],
href="https://github.com/CentralValleyModeling",
target="_blank",
)
),
dbc.DropdownMenu(
nav=True,
in_navbar=True,
label="Menu",
align_end=True,
children=[ # Add as many menu items as you need
dbc.DropdownMenuItem("Home", href="/"),
dbc.DropdownMenuItem(divider=True),
dbc.DropdownMenuItem("Study Selection", href="/study_selection"),
dbc.DropdownMenuItem("Scenario Table", href="/scenario_table"),
dbc.DropdownMenuItem("Heatmap", href="/heatmap"),
dbc.DropdownMenuItem("Summary", href="/summary"),
dbc.DropdownMenuItem("Drilldown", href="/drilldown"),
],
),
],
brand="Home",
brand_href="/",
# sticky="top", # Uncomment if you want the navbar to always appear at the top on scroll.
color="dark", # Change this to change color of the navbar e.g. "primary", "secondary" etc.
dark=True, # Change this to change color of text within the navbar (False for dark text)
)
return navbar