Methods
(static) getCurrentPage() → {Object}
Get the currentPage object
Returns:
- Type:
-
Object
PageObject
(static) goto(obj, previousPoppedUrl)
Change the current page to the requested route
Do nothing if the current page is already the requested route
This:
Parameters:
Name | Type | Description |
---|---|---|
obj |
String
|
Page requested |
previousPoppedUrl |
String
|
Url |
Fires:
- App#page:leave
- App#page:enter
- App#pages:failedtoparse
- App#pages:loaded
- App#pages:loadfatalerror
- App#pages:loaderror
- App#pages:requestBeginPageTransition
- App#pages:navigateToCurrent
- App#pages:requestPageTransition
- App#pages:routeNotFound
- App#pages:loadprogress
- App#pages:notfound
- App#page:leaving
- App#page:entering
(static) notify(key, data, cb)
Notify all registered component and page
This:
- Mediator
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Notify key |
data |
Object
|
Object passed to notified methods |
cb |
function
|
Callback executed when the notify is done |
Returns:
this
(static) notifyCurrentPage(key, data, cb)
Scope the _callAction actions only for the current page
This:
- {Object}
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Notify key |
data |
Object
|
Bag of data |
cb |
function
|
Callback executed after all the _callAction are executed |
Returns:
this
(static) toggle(route, fallback)
Open the wanted page,
return to the precedent page if the requested on is already open
or fallback to a default one
Parameters:
Name | Type | Description |
---|---|---|
route |
String
|
Url |
fallback |
String
|
Url used for as a fallback |