Routing

open class Routing(root: String? = null, useHash: Boolean = true, notFoundHandler: (String) -> Any? = null) : KVRouter(source)

A helper class for Ballast router.

Parameters

root

the root path of the application

useHash

whether to use hash based routing

notFoundHandler

a function called when no route matches

Constructors

Link copied to clipboard
constructor(root: String? = null, useHash: Boolean = true, notFoundHandler: (String) -> Any? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun kvDestroy()
Link copied to clipboard
open override fun kvNavigate(route: String)
Link copied to clipboard
open override fun kvOff(handler: (Any) -> Unit)
Link copied to clipboard
open override fun kvOn(route: String, handler: (Any) -> Unit): KVRouter
Link copied to clipboard
open override fun kvResolve()