FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    router

    module · ferroui-view · v0.5.0

    module router
    

    Navigation between the views of a window (router), modelled on the routing of ReactiveUI (RoutingState, docs/mvvm.md, section 7).

    ReactiveUI Here
    RoutingState Router, provided by router to the components below
    NavigationStack Router::stack: the paths, the current one last
    Navigate Router::navigate: pushes a path
    NavigateBack Router::navigate_back: pops the current path
    NavigateAndReset Router::navigate_and_reset: the stack becomes the path alone
    CurrentViewModel Router::current: the current path
    RoutedViewHost and the view locator the routes: the view of the first pattern that matches

    The entries of the stack are paths rather than view models: a path names its view and its parameters (/people/42), so the state of a screen that outlives navigation lives in signals or contexts above the router, as the view models of ReactiveUI live in the screen.

    View source

    Contents

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.