StringRoute

open class StringRoute(default: String) : Route<String>

StringRoute is a simple Route which serializes and deserializes nothing.

Parameters

default

String to use when no explicit window.location.hash was set before

Constructors

StringRoute
Link copied to clipboard
js
fun StringRoute(default: String)
String to use when no explicit window.location.

Functions

deserialize
Link copied to clipboard
js
open override fun deserialize(hash: String): String
Deserializes the window.location.
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
serialize
Link copied to clipboard
js
open override fun serialize(route: String): String
Serializes a given object of type T to String for setting it to the window.location.
toString
Link copied to clipboard
js
open fun toString(): String

Properties

default
Link copied to clipboard
js
open override val default: String
String to use when no explicit window.location.