Skip to content

Commit

Permalink
Remove the tab title for now
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Oct 22, 2023
1 parent a978f2a commit 7b3aa43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion vizro-core/examples/default/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@
],
controls=[
# TODO: Fix issue of graphs only being updated if they are target of controls
# e.g. if you don't add the parameter below, all of the charts will not get loaded
# probably need to implement some logic for an on_tab_load action
vm.Parameter(
targets=["graph-1.y", "graph-2.y", "graph-3.y", "graph-4.y"],
targets=["graph-1.y", "graph-2.y", "graph-3.y", "graph-4.y", "graph-5.y"],
selector=vm.RadioItems(options=["lifeExp", "pop", "gdpPercap"], title="Select variable"),
)
],
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/src/vizro/models/_components/_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Tab(VizroBaseModel):
def build(self):
components = [component.build() for component in self.components]
return dcc.Tab(
html.Div(children=[html.H3(self.title, className="tab-title"), *components]),
html.Div(children=[*components]),
id=self.id,
label=self.title,
)

0 comments on commit 7b3aa43

Please sign in to comment.