Element for managing a stack of Page elements.
Pages are stacked and only the topmost page is active. New pages get added to the top of the stack.
Properties:
| Name | Type | Description |
|---|---|---|
initialPage |
string | The URL to load the initial page from. |
loading |
bool | [readonly] |
pages |
Array.<ui.Page> | [readonly] The stack of pages. |
Methods
-
Pops the topmost page off the page stack.
-
Pushes a new page onto the page stack.
Name Type Description targetstring The URL of the new page.
propsobject The properties to set on the page.
Example
pageStack.pushPage("MyPage.shui", { title: "My Page", foo: "bar" });