-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18125a3
commit 49f7b90
Showing
6 changed files
with
61 additions
and
2 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from uuid import uuid4 | ||
|
||
import dash_html_components as html | ||
|
||
from .. import WebvizContainerABC | ||
|
||
|
||
class ExampleTour(WebvizContainerABC): | ||
def __init__(self): | ||
self.blue_text_id = f"element-{uuid4()}" | ||
self.red_text_id = f"element-{uuid4()}" | ||
|
||
@property | ||
def tour_steps(self): | ||
return [ | ||
{"id": self.blue_text_id, "content": "This is the first step"}, | ||
{"id": self.red_text_id, "content": "This is the second step"}, | ||
] | ||
|
||
@property | ||
def layout(self): | ||
return html.Div( | ||
children=[ | ||
html.Span( | ||
"Here is some blue text to explain... ", | ||
id=self.blue_text_id, | ||
style={"color": "blue"}, | ||
), | ||
html.Span( | ||
" ...and here is some red text that also needs an explanation.", | ||
id=self.red_text_id, | ||
style={"color": "red"}, | ||
), | ||
] | ||
) |