Explorer¶
- component fbx.ui.page.Explorer¶
Explorer is a container object used to contain a stack of views in an application. Application may navigate through successive pages.
Explorer shows an optional companion view on the side of each page shown.
- property baseUrl¶
URL acting as a root of subsequent pushed URLs. After a page has beed pushed in the explorer, subsequent pushes will be relative to top page URL.
- property duration¶
Duration (in milliseconds) of the transition animation between pages.
- property canPopRoot¶
Whether calling
pop()
will also pop the last page in explorer, leaving the user with an empty explorer.
- property depth¶
Count of pages currently in the explorer.
- property initialPage¶
URL (absolute or relative to
baseUrl
) of the root page in explorer. This is optional. If not set, explorer will start empty.
- method push(url, defaults)¶
- Parameters
url (
string
) – An URL to add in the component cachedefaults (
object
) – Properties to assign to the new item
Adds an item to the end of the explorer.
- method replace(url, defaults)¶
- Parameters
url (
string
) – An URL to add in the component cachedefaults (
object
) – Properties to assign to the new item
- method replaceAt(index, url, defaults)¶
- Parameters
index (
int
) – Index to replaceurl (
string
) – An URL to add in the component cachedefaults (
object
) – Properties to assign to the new item
Does an atomic
popTo()
thenpush()
. Pushed page will replace page at indexindex
.
- method pop()¶
Remove the current top of the explorer.
- method popTo(index)¶
- Parameters
index (
int
) –
Removes items at top of stack in order to make stack item
index
new stack top.This example will pop to root of page stack:
popTo(0)
- property titleList¶
Current page stack.