Routing

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

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 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()