package 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 id : t -> string
val set_id : t -> string -> unit
type node_type =
  1. | ELEMENT_NODE
  2. | TEXT_NODE
  3. | PROCESSING_INSTRUCTION_NODE
  4. | COMMENT_NODE
  5. | DOCUMENT_NODE
  6. | DOCUMENT_TYPE_NODE
  7. | DOCUMENT_FRAGMENT_NODE
val node_type : t -> node_type
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
type shadow_mode =
  1. | Open
  2. | Closed
val attach_shadow : mode:shadow_mode -> t -> 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 submit : t -> unit
val show_picker : t -> unit
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 inner_HTML : t -> string
val outer_HTML : t -> string
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 scroll_into_view : t -> bool -> unit
val focus : t -> unit
val blur : t -> unit
type scroll_into_view_options = {
  1. behavior : behavior option;
}
and behavior =
  1. | Auto
  2. | Instant
  3. | Smooth
val scroll_into_view_options : t -> scroll_into_view_options -> unit
type scroll_by_options = {
  1. top : float;
  2. left : float;
  3. behavior : behavior option;
}
val scroll_by : t -> scroll_by_options -> 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
val query_selector : t -> string -> t
val query_selector_all : t -> string -> t list
val class_list : t -> ClassList.t
OCaml

Innovation. Community. Security.