All Downloads are FREE. Search and download functionalities are using the official Maven repository.

slinky.history.History.scala Maven / Gradle / Ivy

There is a newer version: 1-5ee1000d
Show newest version
package slinky.history

import org.scalajs.dom.History

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

@js.native
trait RichHistory extends History {
  def action: String                                = js.native
  def block(prompt: Boolean = false): Unit          = js.native
  def createHref(location: String): Unit            = js.native
  def goBack(): Unit                                = js.native
  def goForward(): Unit                             = js.native
  def listen(listener: js.Function0[Unit]): Unit    = js.native
  def location: String                              = js.native
  def push(route: String): Unit                     = js.native
  def replace(path: String, state: js.Object): Unit = js.native
}

@JSImport("history", JSImport.Default)
@js.native
object History extends js.Object {
  def createBrowserHistory(): RichHistory = js.native
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy