Navigation

tyrian.Navigation$
object Navigation

Provides simple routing based on url hash (anchor), such as: http://mysite.com/#page1

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

enum Result

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getLocationHash[F[_] : Async, Msg](resultToMessage: Result => Msg): Cmd[F, Msg]

Fetch the current location hash

Fetch the current location hash

Attributes

def onLocationHashChange[F[_] : Async, Msg](resultToMessage: HashChange => Msg): Sub[F, Msg]

Subscribes to changes in the url hash and reports when they occur

Subscribes to changes in the url hash and reports when they occur

Attributes

def setLocationHash[F[_] : Async](newHash: String): Cmd[F, Nothing]

Set the location hash, the change can then be detected using the onLocationHashChange subscription

Set the location hash, the change can then be detected using the onLocationHashChange subscription

Attributes