new Router(options)
- Source:
Create a router
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Members
(static) goTo
- Source:
Methods
(static) lazyload() → {Router}
- Source:
prefetch content on a service worker
Returns:
- Type
- Router
(static) mount() → {Router}
- Source:
Called after instantiation, boots everything up
Returns:
- Type
- Router
(static) onClick(e, elm) → {void}
- Source:
mouse click event, triggers a fetch
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | event object |
elm |
HTMLElement | the html element entered |
Returns:
- Type
- void
(static) onMouseEnter(e, elm) → {void}
- Source:
mouse enter event, triggers a fetch
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | event object |
elm |
HTMLElement | the html element entered |
Returns:
- Type
- void