Skip to content

Commit

Permalink
Add brand link to logo example
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbegley committed Dec 30, 2018
1 parent bb42b13 commit d7f1583
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions examples/advanced-component-usage/CustomNavbar.py
Expand Up @@ -5,6 +5,7 @@
"""
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State

Expand Down Expand Up @@ -64,14 +65,19 @@
logo = dbc.CustomNavbar(
dbc.Container(
[
# Use row and col to control vertical alignment of logo and brand
dbc.Row(
[
dbc.Col(html.Img(src=PLOTLY_LOGO, height="30px")),
dbc.Col(html.Span("Logo", className="ml-2 navbar-brand")),
],
align="center",
no_gutters=True,
html.A(
# Use row and col to control vertical alignment of logo / brand
dbc.Row(
[
dbc.Col(html.Img(src=PLOTLY_LOGO, height="30px")),
dbc.Col(
html.Span("Logo", className="ml-2 navbar-brand")
),
],
align="center",
no_gutters=True,
),
href="https://plot.ly",
),
dbc.NavbarToggler(id="navbar-toggler2"),
dbc.Collapse(
Expand Down

0 comments on commit d7f1583

Please sign in to comment.