-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug in callback so that only layout is updated if data is uncha…
…nged
- Loading branch information
Øyvind Lind-Johansen
committed
Sep 13, 2022
1 parent
00ed1b9
commit e78f6ad
Showing
3 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
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
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
8 changes: 6 additions & 2 deletions
8
webviz_subsurface/plugins/_well_analysis/_views/_well_overview_view/_view_element.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import webviz_core_components as wcc | ||
from dash import html | ||
from webviz_config.utils import StrEnum | ||
from webviz_config.webviz_plugin_subclasses import ViewElementABC | ||
|
||
|
||
class WellOverviewViewElement(ViewElementABC): | ||
class Ids(StrEnum): | ||
CHART = "chart" | ||
GRAPH = "graph" | ||
|
||
def __init__(self) -> None: | ||
super().__init__() | ||
|
||
def inner_layout(self) -> html.Div: | ||
return html.Div( | ||
id=self.register_component_unique_id(WellOverviewViewElement.Ids.CHART) | ||
children=wcc.Graph( | ||
id=self.register_component_unique_id(WellOverviewViewElement.Ids.GRAPH), | ||
style={"height": "87vh"}, | ||
), | ||
) |