class

Egui::Router

Inherits Reference < Object

The route stack + per-frame page registry, drawn by ctx.routes.

Constructors

new(ctx : Context)
Source

Instance methods

back

Pop to the previous page (the Page back button).

Source
current

The address on top of the stack.

Source
page(address : String, title : String | Nil = nil, &block : Ui -> ) : Nil

A full-window opaque page (renders via Context#page; the back button pops the stack when a page sits below).

Source
replace(address : String) : Nil

Replace the top of the stack (no back entry left behind).

Source

Nested types