These are all the instance methods that exists on pager.Page-
-objects, i.e. the actual pages.
element : Node
viewModel : Observable/Object
The view-model of the page.
children : ObservableArray(Page[])
child(String) : Observable(Page)
parentPage : Page
The parent page, or null if the page is the root page (pages.page).
currentParentPage : Observable(Page)
The current parent page. Normally it is the same as parentPage
but for modal pages it change change.
currentChildPage : Observable(Page)
The currently visible child-page of the page. Observe that the current child page
does not need to be in the collection children
since the current child page
can be a modal page!
currentId : Observable(String)
Get the current ID of the page. You should normally call this method instead of getId
since the current ID can change for wildcard-pages (?).
isVisible : Observable(Boolean)
An observable that returns true if the page is visible at the moment, false otherwise. Useful for communication with tab panels and menus.
val(String) : Object
Get an un-boxed configuration property from valueAccessor
by the key specified.
If you want to get hold of e.g. the configuration property beforeHide
you should
call somePage.val('beforeHide')
instead of somePage.valueAccessor.beforeHide
since both valueAccessor
and beforeHide
can be observables!
All the possible keys for the configuration object can be accessed using val
(e.g. title, params, with, withOnShow).
getId() : String
The ID of the page. You should normally call currentId
instead since the
ID can change for wildcard pages.
init() : {controlsDescendantBindings:true}
getFullRoute() : [String]
Returns the full route of the page.
nullObject : pager.Page
Is a null-object of pager.Page
. It is useful in computed observables
as a temporary Page-instance before the correct Page-instance is loaded or parsed.
async(Function():$.Deferred, String, [String], [Observable(String)]): Function
path: String
path$: Observable(String)
find: pager.Page
find$: Observable(pager.Page)
child(String): Observable(pager.Page)