ArvaRouter
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
decode: * |
|
public |
|
|
public |
|
|
public |
history: * |
|
public |
routes: * |
|
public |
specs: * |
Method Summary
Public Methods | ||
public |
Registers a single controller. |
|
public |
Triggers navigation to one of the controllers |
|
public |
|
|
public |
isBackButtonEnabled(): * |
|
public |
On a route change, calls the corresponding controller method with the given parameter values. |
|
public |
setBackButtonEnabled(enabled: *) |
|
public |
setControllerSpecs(specs: Object): void Sets the animation specs object for use by the famous-flex AnimationController. |
|
public |
setDefault(controller: Controller | Function | String, method: String): void Sets the initial controller and method to be activated whenever the controllers are activated. |
|
public |
setInitialSpec(spec: *) |
Inherited Summary
From class Router | ||
public |
controllers: * |
|
public |
|
|
public |
|
|
public |
Registers a single controller. |
|
public |
Triggers navigation to one of the controllers |
|
public |
On a route change, calls the corresponding controller method with the given parameter values. |
|
public |
setDefault(controller: Controller | Function | String, method: String): void Sets the initial controller and method to be activated whenever the controllers are activated. |
Public Constructors
Public Members
public decode: * source
public history: * source
public routes: * source
public specs: * source
Public Methods
public add(route: String, handlers: Object): void source
Registers a single controller.
Override:
Router#addReturn:
void |
public go(controller: Controller | Function | String, method: String, params: Object): void source
Triggers navigation to one of the controllers
Override:
Router#goParams:
Name | Type | Attribute | Description |
controller | Controller | Function | String | The controller instance, controller constructor, or controller name to go to. |
|
method | String | The method to call in given controller. |
|
params | Object | Dictonary of key-value pairs containing named arguments (i.e. {id: 1, test: "yes"}) |
Return:
void |
public goBackInHistory() source
public run(): Boolean source
On a route change, calls the corresponding controller method with the given parameter values.
Override:
Router#runpublic setBackButtonEnabled(enabled: *) source
Params:
Name | Type | Attribute | Description |
enabled | * |
public setControllerSpecs(specs: Object): void source
Sets the animation specs object for use by the famous-flex AnimationController.
Params:
Name | Type | Attribute | Description |
specs | Object | Animation specs, keyed by target controller. |
Return:
void |
public setDefault(controller: Controller | Function | String, method: String): void source
Sets the initial controller and method to be activated whenever the controllers are activated.
Override:
Router#setDefaultParams:
Name | Type | Attribute | Description |
controller | Controller | Function | String | Default controller instance, controller constructor, or controller name to go to. |
|
method | String | Default method to call in given controller. |
Return:
void |
public setInitialSpec(spec: *) source
Params:
Name | Type | Attribute | Description |
spec | * |