Skip to main content

Module Tea_navigation

type navigationProgram​

type ('flags, 'model, 'msg) navigationProgram = {

val getLocation​

val getLocation : unit -> Web.Location.location

val notifier​

val notifier : ( Web.Location.location -> unit ) option Stdlib.ref

val notifyUrlChange​

val notifyUrlChange : unit -> unit

val subscribe​

val subscribe : ( Web.Location.location -> 'a ) -> 'b Tea_sub.t

val replaceState​

val replaceState : string -> unit

val pushState​

val pushState : string -> unit

val modifyUrl​

val modifyUrl : string -> 'a Tea_cmd.t

val newUrl​

val newUrl : string -> 'a Tea_cmd.t

val go​

val go : int -> 'a Tea_cmd.t

val back​

val back : int -> 'a Tea_cmd.t

val forward​

val forward : int -> 'a Tea_cmd.t

val navigationProgram​

val navigationProgram :    ( Web.Location.location -> 'a ) ->   ( 'b, 'c, 'd ) navigationProgram ->   Web.Node.t Js.null_undefined ->   'e ->   'f Tea_app.programInterface