Navigation and pages

Navigation
Configure the available pages in a multipage app.
var currentPage =
Jt.navigation(
Jt.page("/dashboard", DashboardPage::app).title("Home").home(),
Jt.page("/users", () -> users()).icon("👥"),
Jt.page("/queries", () -> {Jt.title("Queries").use(); ...}))
.use();
currentPage.run();

Page
Define a page in a multipage app.
Jt.page("/settings", () -> settings())
.title("Settings")
.icon(":settings:");

Page link
Display a link to another page in a multipage app.
Jt.pageLink("/dashboard").use();
Jt.pageLink("/users").label("See Users").use();
// external page
Jt.pageLink("https://github.com/javelit/javelit", "Github project").icon(":link:").use();
Switch page
Programmatically navigates to a specified page.
Jt.switchPage("/users");
// go home
Jt.switchPage(null);
Still have questions?
Go to our discussions forum for helpful information and advice from Javelit experts.