Page.gd
Learn about the Page resource and its data.
What is the Page Resource?
The Page resource extends the Route.gd and is used by the Router.gd to hold all data associated with the current active page. This is used over a standard dictionary to provide type safety.
File
Below is the entire code of the Page.gd file.
extends Route
class_name Page
## A Page represents a navigable page or route in the application.
# The url that this page is associated with.
var url: String
# A dictionary of parameters extracted from the url when this page is navigated to.
# A url like "/user?id=123&q=username" would result in params being { "id": "123", "q": "username" }.
var params: Dictionary[String, String] .gd