package vdom

  1. Overview
  2. Docs

Module Js_browser.ElementSource

Sourcetype t
Sourceval t_of_js : Ojs.t -> t
Sourceval t_to_js : t -> Ojs.t
Sourceval null : t
Sourceval id : t -> string
Sourceval set_id : t -> string -> unit
Sourcetype 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
Sourceval node_type : t -> node_type
Sourceval clone_node : t -> bool -> t
Sourceval contains : t -> t -> bool
Sourceval append_child : t -> t -> unit
Sourceval insert_before : t -> t -> t -> unit
Sourceval replace_child : t -> t -> t -> unit
Sourceval remove_child : t -> t -> unit
Sourceval first_child : t -> t
Sourceval last_child : t -> t
Sourceval next_sibling : t -> t
Sourceval remove_all_children : t -> unit
Sourceval has_child_nodes : t -> bool
Sourceval add_event_listener : t -> Event.kind -> (Event.t -> unit) -> bool -> unit
Sourceval add_cancellable_event_listener : t -> Event.kind -> (Event.t -> unit) -> bool -> unit -> unit
Sourceval inner_text : t -> string
Sourceval get_elements_by_tag_name : t -> string -> t array
Sourceval get_elements_by_class_name : t -> string -> t array
Sourceval has_attribute : t -> string -> bool
Sourceval get_attribute : t -> string -> string
Sourceval remove_attribute : t -> string -> unit
Sourceval set_attribute : t -> string -> string -> unit
Sourceval get_bounding_client_rect : t -> Rect.t
Sourceval get_bounding_box : t -> SVGRect.t
Sourcetype shadow_mode =
  1. | Open
  2. | Closed
Sourceval attach_shadow : mode:shadow_mode -> t -> t
Sourceval normalize : t -> unit
Sourceval value : t -> string
Sourceval set_value : t -> string -> unit
Sourceval select : t -> unit
Sourceval files : t -> File.t list
Sourceval submit : t -> unit
Sourceval show_picker : t -> unit
Sourceval selected_index : t -> int
Sourceval checked : t -> bool
Sourceval set_checked : t -> bool -> unit
Sourceval node_value : t -> string
Sourceval set_node_value : t -> string -> unit
Sourceval parent_node : t -> t
Sourceval node_name : t -> string
Sourceval dispatch_event : t -> Event.t -> bool
Sourceval style : t -> Style.t
Sourceval inner_HTML : t -> string
Sourceval outer_HTML : t -> string
Sourceval set_inner_HTML : t -> string -> unit
Sourceval set_text_content : t -> string -> unit
Sourceval set_class_name : t -> string -> unit
Sourceval class_name : t -> string
Sourceval client_width : t -> int
Sourceval client_height : t -> int
Sourceval scroll_width : t -> int
Sourceval scroll_height : t -> int
Sourceval width : t -> int
Sourceval height : t -> int
Sourceval offset_parent : t -> t option
Sourceval offset_top : t -> int
Sourceval offset_left : t -> int
Sourceval offset_width : t -> int
Sourceval offset_height : t -> int
Sourceval scroll_top : t -> float
Sourceval set_scroll_top : t -> float -> unit
Sourceval scroll_into_view : t -> bool -> unit
Sourceval focus : t -> unit
Sourceval blur : t -> unit
Sourcetype scroll_into_view_options = {
  1. behavior : behavior option;
}
Sourceand behavior =
  1. | Auto
  2. | Instant
  3. | Smooth
Sourceval scroll_into_view_options : t -> scroll_into_view_options -> unit
Sourcetype scroll_by_options = {
  1. top : float;
  2. left : float;
  3. behavior : behavior option;
}
Sourceval scroll_by : t -> scroll_by_options -> unit
Sourceval selection_start : t -> int
Sourceval selection_end : t -> int
Sourceval set_selection_start : t -> int -> unit
Sourceval set_selection_end : t -> int -> unit
Sourceval remove : t -> unit
Sourceval click : t -> unit
Sourceval query_selector : t -> string -> t
Sourceval query_selector_all : t -> string -> t list
Sourceval class_list : t -> ClassList.t
OCaml

Innovation. Community. Security.