AbstractMHistoryRouter
AbstractMHistoryRouter ⇐ Trait
Kind: global abstract class
Extends: Trait
Properties
Name | Type | Description |
---|---|---|
_routesHistory | Array | A list of routes as an history of navigation. |
- AbstractMHistoryRouter ⇐
Trait
AbstractMHistoryRouter()
Utility class to handle route items inside the router history stack.
getRouteFromHistory([options]) ⇒ Object
Retrieves one or more route from the history of navigation.
Kind: instance method of AbstractMHistoryRouter
Returns: Object
- A route object holding a route name and some route data.
Param | Type | Description |
---|---|---|
[options] | Object | Optional parameters |
[options.index] | number | An index between 0 and the history stack length. |
[options.find] | function | A function called as an interactive method to find routes that fulfill a given condition. |
_addRouteToHistory(routeName, data)
Push a new route into the history stack of navigation.
Kind: instance method of AbstractMHistoryRouter
Access: protected
Param | Type | Description |
---|---|---|
routeName | String | The route name associated to the wanted page to jump to. |
data | Object | The route parameters (holding a POJO structure) |
_getPreviousRoute() ⇒ Object
Retrieves the latest route stored in the history. Can be overridden if you want a specific behaviour
Kind: instance method of AbstractMHistoryRouter
Returns: Object
- The latest route in the history stack.
Access: protected