Routing

open class Routing(root: String? = null, useHash: Boolean = true, strategy: Strategy = Strategy.ONE, noMatchWarning: Boolean = false, linksSelector: String? = null)

A helper class for Navigo 8+ JavaScript router.

Parameters

root

the root path of the application

useHash

whether to use hash based routing

strategy

a routing strategy

noMatchWarning

do not show warnings when there is no matching route

linksSelector

CSS links selector

Constructors

Link copied to clipboard
constructor(root: String? = null, useHash: Boolean = true, strategy: Strategy = Strategy.ONE, noMatchWarning: Boolean = false, linksSelector: String? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun kvDestroy()
Link copied to clipboard
open fun kvNavigate(route: String)
Link copied to clipboard
open fun kvOff(handler: (Any) -> Unit)
Link copied to clipboard
open fun kvOn(route: String, handler: (Any) -> Unit): <Error class: unknown class>
Link copied to clipboard
open fun kvResolve()