-
Notifications
You must be signed in to change notification settings - Fork 2
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
Kevin Miller
committed
Feb 20, 2024
1 parent
f10b31e
commit db3c974
Showing
7 changed files
with
90 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Go Deeper Menu | ||
|
||
This example demonstrates using a menu with nested sub views. In this case we will go from Artists to Paintings to Colors. | ||
This example demonstrates using a menu with nested sub views. In this case we will go from Artists to the colors used in their Paintings. | ||
|
||
``` | ||
Artists -> Paintings -> Colors | ||
Artists -> Colors | ||
``` | ||
|
||
## Pushing onto the NavStack | ||
|
||
The artists component will push paintings onto the Navstack. While Paintings will push Colors onto the Navstack. | ||
|
||
## Poping off the NavStack | ||
## Popping off the NavStack | ||
|
||
When a color is selected it will be popped off the navstack. But it will also emit a `ColorSelected` message. Which the Paintings component should handle and follow a similar pattern popping off the navstack and then emitting a `Painting Selected` msg. Likewise the Artist component will do the same and the menu will have all it's selections. | ||
|
||
<!-- <img src="out.gif" alt="gif"/> --> | ||
<img src="demo.gif" alt="vhs recording of this TUI example"/> | ||
|
||
|
||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,38 @@ | ||
Output demo.gif | ||
|
||
Require echo | ||
|
||
Set Shell "bash" | ||
Set FontSize 32 | ||
Set Width 2400 | ||
Set Height 1200 | ||
|
||
Sleep 1.5s | ||
Type "go run ." | ||
Enter | ||
Sleep 2.5s | ||
Down | ||
Sleep 1s | ||
Enter | ||
Sleep 2s | ||
Down 2 | ||
Sleep 1s | ||
Down | ||
Sleep 500ms | ||
Down | ||
Sleep 1s | ||
Enter | ||
Sleep 1.5s | ||
Escape | ||
Sleep 1.5s | ||
Down | ||
Enter | ||
Sleep 1.5s | ||
Escape | ||
Up 3 | ||
Sleep 1.5s | ||
Enter | ||
Sleep 2s | ||
Enter | ||
Sleep 5s | ||
|
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,34 @@ | ||
Set Shell zsh | ||
Sleep 1.5s | ||
Type "go run ." | ||
Sleep 500ms | ||
Enter | ||
Sleep 2.5s | ||
Down | ||
Sleep 1s | ||
Enter | ||
Sleep 2s | ||
Down 2 | ||
Sleep 1s | ||
Down | ||
Sleep 500ms | ||
Down | ||
Sleep 1s | ||
Enter | ||
Sleep 1.5s | ||
Escape | ||
Sleep 1.5s | ||
Down | ||
Enter | ||
Sleep 1.5s | ||
Escape 2 | ||
Type "[A" | ||
Escape | ||
Type "[A" | ||
Escape | ||
Type "[A" | ||
Enter | ||
Sleep 2s | ||
Enter | ||
Sleep 2s | ||
|
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