package ocaml-vdom

  1. Overview
  2. Docs
type t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val null : t
val clone_node : t -> bool -> t
val contains : t -> t -> bool
val append_child : t -> t -> unit
val insert_before : t -> t -> t -> unit
val replace_child : t -> t -> t -> unit
val remove_child : t -> t -> unit
val first_child : t -> t
val last_child : t -> t
val next_sibling : t -> t
val remove_all_children : t -> unit
val has_child_nodes : t -> bool
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 inner_text : t -> string
val get_elements_by_tag_name : t -> string -> t array
val get_elements_by_class_name : t -> string -> t array
val has_attribute : t -> string -> bool
val get_attribute : t -> string -> string
val remove_attribute : t -> string -> unit
val set_attribute : t -> string -> string -> unit
val get_bounding_client_rect : t -> Rect.t
val get_bounding_box : t -> SVGRect.t
val normalize : t -> unit
val value : t -> string
val set_value : t -> string -> unit
val select : t -> unit
val files : t -> File.t list
val selected_index : t -> int
val checked : t -> bool
val set_checked : t -> bool -> unit
val node_value : t -> string
val set_node_value : t -> string -> unit
val parent_node : t -> t
val node_name : t -> string
val dispatch_event : t -> Event.t -> bool
val style : t -> Style.t
val set_inner_HTML : t -> string -> unit
val set_text_content : t -> string -> unit
val set_class_name : t -> string -> unit
val class_name : t -> string
val client_width : t -> int
val client_height : t -> int
val scroll_width : t -> int
val scroll_height : t -> int
val width : t -> int
val height : t -> int
val offset_parent : t -> t option
val offset_top : t -> int
val offset_left : t -> int
val offset_width : t -> int
val offset_height : t -> int
val scroll_top : t -> float
val set_scroll_top : t -> float -> unit
val focus : t -> unit
val blur : t -> unit
val selection_start : t -> int
val selection_end : t -> int
val set_selection_start : t -> int -> unit
val set_selection_end : t -> int -> unit
val remove : t -> unit
val click : t -> unit
OCaml

Innovation. Community. Security.