Simplr Router logo Simplr Router Docs Guides Toggle darkmode

API: Router Options

Type name: SimplrRouterOptions

NameTypeDescription
routesSimplrRouteRoutes provided for the Simplr Router.
rootPathstringRoot path of the router. If the root is not the origin of the host.
transitionSpeednumberTransition speed of view transitions in milliseconds.
notFoundActionFunctionAction triggered when a view is not found.
forbiddenActionFunctionAction triggered when access to a view is forbidden by a guard function.
debuggingbooleanEnable debugging.