Skip to main content

Module navigation

Module navigation 

Source
Expand description

Bubba’s built-in navigation system. Screens are pushed and popped from a stack — back-button support is free.

§Usage

// In a view! block:
onclick = navigate(Profile)

Under the hood, navigate(Profile) is sugar for:

EventHandler::onclick(|_| navigate_to("Profile", Profile))

Re-exports§

pub use navigate_to as navigate;

Structs§

NavigationStack
The global navigation stack.
ScreenEntry
A navigation entry on the stack.

Functions§

global_stack
Access the global navigation stack.
navigate_back
Go back one screen.
navigate_to
Navigate to a screen by pushing it onto the global stack.

Type Aliases§

ScreenFn
Signature of a screen constructor.