Class: PageStack

ui.PageStack

new ui.PageStack ()

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] true while a page is being loaded.

pages Array.<ui.Page>

[readonly] The stack of pages.

Methods

popPage ()

Pops the topmost page off the page stack.

pushPage (target, props)

Pushes a new page onto the page stack.

Name Type Description
target string

The URL of the new page.

props object

The properties to set on the page.

Example
pageStack.pushPage("MyPage.shui", {
    title: "My Page",
    foo: "bar"
});