Nav

tyrian.Nav
object Nav

The Nav object provides Cmds that are mainly expected to be used in conjunction with Tyrian's frontend routing. It exposes some of the functions from the JS Location and History apis.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Nav.type

Members list

Value members

Concrete methods

def back[F[_] : Async]: Cmd[F, Nothing]

Move back one in the browser's history.

Move back one in the browser's history.

Attributes

def forward[F[_] : Async]: Cmd[F, Nothing]

Move forward one in the browser's history.

Move forward one in the browser's history.

Attributes

def loadUrl[F[_] : Async](href: String): Cmd[F, Nothing]

Tells the browser to navigate to a new url. Should be used in conjunction with Tyrian's frontend routing when you detect an external link and wish to follow it.

Tells the browser to navigate to a new url. Should be used in conjunction with Tyrian's frontend routing when you detect an external link and wish to follow it.

Attributes

def pushUrl[F[_] : Async](url: String): Cmd[F, Nothing]

Update the address bar location with a new url. Should be used in conjunction with Tyrian's frontend routing so that when your model decides to change pages, you can update the browser accordingly.

Update the address bar location with a new url. Should be used in conjunction with Tyrian's frontend routing so that when your model decides to change pages, you can update the browser accordingly.

Attributes