deeper

command
v0.0.0-...-56fac8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: MIT Imports: 10 Imported by: 0

README

A "Deeper" Hierarchical Menu

This example demonstrates using the shell component which wraps the navstack and breadcrumbs in a handy application container. There are 3 levels of menus navigating the user through the application. In this case we will go from Artists to their Paintings to the prominent Colors used in that painting.

Artists -> Paintings -> Colors

The user can select and preview the desired color and is told which artist and painting it comes from. While this applicaton is simple it demonstrates how each level of navigation could be a more robust complex user experience. The breadcrumbs give the user a sense of place so they do not get lost within a deep hierarchy of actions.

Pushing onto the NavStack

The artists component will push paintings onto the navstack. Each Painting will push its Colors onto 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 will 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.

vhs recording of this TUI example

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL