package ocaml-vdom

  1. Overview
  2. Docs
type t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
type timeout_id
type interval_id
val add_event_listener : t -> Event.kind -> (Event.t -> unit) -> bool -> unit
val add_cancellable_event_listener : t -> Event.kind -> (Event.t -> unit) -> bool -> unit -> unit
val document : t -> Document.t
val set_onload : t -> (unit -> unit) -> unit
val set_interval : t -> (unit -> unit) -> int -> interval_id
val set_timeout : t -> (unit -> unit) -> int -> timeout_id
val clear_timeout : t -> timeout_id -> unit
val clear_interval : t -> interval_id -> unit
val request_animation_frame : t -> (float -> unit) -> unit
val open_ : t -> ?url:string -> ?name:string -> ?features:string -> ?replace:bool -> unit -> t
val alert : t -> string -> unit
val session_storage : t -> Storage.t option
val local_storage : t -> Storage.t option
val inner_width : t -> float
val inner_height : t -> float
val page_x_offset : t -> int
val page_y_offset : t -> int
val scroll_by : t -> int -> int -> unit
val scroll_to : t -> int -> int -> unit
val history : t -> History.t
val location : t -> Location.t
val frame_element : t -> Element.t
val get_computed_style : t -> Element.t -> Style.t
val decode_URI_component : t -> string -> string
val event_source : Event.t -> t
val post_message : t -> Ojs.t -> string -> unit