package virtual_dom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type dom = private Js_of_ocaml.Dom_html.element
module Input : sig ... end
module State : sig ... end
val name : Base.string
val update : prev_input:Input.t -> input:Input.t -> state:State.t -> element:dom Js_of_ocaml.Js.t -> State.t * dom Js_of_ocaml.Js.t
val destroy : prev_input:Input.t -> state:State.t -> element:dom Js_of_ocaml.Js.t -> Base.unit
val to_vdom_for_testing : [ `Custom of Input.t -> t | `Sexp_of_input ]

Inside of tests, this widget can be printed and interacted with as though it were instead, some other kind of vdom node. Use `Custom to choose that node, or `Sexp_of_input to get a basic vdom node that just contains the sexp of the current input to the widget.