BallastRouterFactory

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

A router factory for Ballast routing module.

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)

Properties

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

Functions

Link copied to clipboard
open fun getRouter(): <Error class: unknown class>
Link copied to clipboard
open fun initRouter()
Link copied to clipboard
open fun shutdownRouter()