package ocaml-js-stdlib

  1. Overview
  2. Docs
type t
val t_to_js : t -> Ojs.t
val t_of_js : Ojs.t -> t
val selector : string -> t
val wrap : Ojs.t -> t
val explode : t -> t list
val elements : t -> Js_dom.element list
val contents : t -> t
val parent : t -> t
val children : t -> t
val hide : t -> unit
val show : t -> unit
val prop : t -> string -> Ojs.t
val set_prop : t -> string -> [ `Any of Ojs.t | `Bool of bool | `Int of int | `String of string ] -> unit
val data : t -> string -> Ojs.t
val set_data : t -> string -> Ojs.t -> unit
val attr : t -> string -> string option
val set_attr : t -> string -> string -> unit
val remove_attr : t -> string -> unit
val text : t -> string
val set_text : t -> string -> unit
val height : t -> int
val set_height : t -> [ `Int of int | `String of string ] -> unit
val width : t -> int
val set_width : t -> [ `Int of int | `String of string ] -> unit
val string_value : t -> string
val set_string_value : t -> string -> unit
val add_class : t -> string -> unit
val remove_class : t -> string -> unit
val css : t -> string -> Ojs.t
val set_css_value : t -> string -> [ `Float of float | `String of string ] -> unit
val set_css : t -> Ojs.t -> unit
val find : t -> string -> t list
val append : t -> t list -> unit
val prepend : t -> t list -> unit
val after : t -> t -> unit
val before : t -> t -> unit
val detach : t -> unit
val empty : t -> unit
val clone : t -> t
val html : t -> string
val set_html : t -> string -> unit
val menu : t -> unit
module Event : sig ... end
val on : t -> string -> (Event.t -> unit) -> unit
val off : t -> string -> unit
val trigger : t -> string -> unit
module Dialog : sig ... end
module UI : sig ... end
val dialog : t -> [ `Dialog of Dialog.settings | `String of string ] -> unit
val focus : t -> unit
val remove : t -> unit
module Ajax : sig ... end
module Notify : sig ... end
OCaml

Innovation. Community. Security.