package ojs-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module SMap : sig ... end
val (+=) : 'a SMap.t Stdlib.ref -> (string * 'a) -> unit
val (-=) : 'a SMap.t Stdlib.ref -> string -> unit
type id = string
val log : string -> unit
val mk_msg_of_wsdata : (Yojson.Safe.t -> ('a, string) Stdlib.result) -> string -> 'a option
val class_ : string -> string
val setup_ws : string -> (string -> 'a option) -> onopen:(Js_of_ocaml.WebSockets.webSocket Js_of_ocaml.Js.t -> 'c) -> onmessage:(Js_of_ocaml.WebSockets.webSocket Js_of_ocaml.Js.t -> 'a -> 'd) -> Js_of_ocaml.WebSockets.webSocket Js_of_ocaml.Js.t option
val send_msg : Js_of_ocaml.WebSockets.webSocket Js_of_ocaml.Js.t -> string -> unit
val clear_children : Js_of_ocaml.Dom.node Js_of_ocaml.Js.t -> unit
val node_by_id : string -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t
val gen_id : unit -> id
val set_onclick : Js_of_ocaml.Dom_html.eventTarget Js_of_ocaml.Js.t -> (Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.t -> 'a) -> unit
val split_string : ?keep_empty:bool -> string -> char list -> string list
val get_classes : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> string list
val node_unset_class : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> string -> unit
val node_set_class : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> string -> unit
val unset_class : id:string -> string -> unit
val set_class : id:string -> string -> unit
OCaml

Innovation. Community. Security.