package virtual_dom
OCaml bindings for the virtual-dom library
Install
Dune Dependency
Authors
Maintainers
Sources
virtual_dom-v0.15.0.tar.gz
sha256=c32029907c0667369a500091533e2121c050e2392cfae7f07f2289e87c797390
doc/virtual_dom.keyboard/Vdom_keyboard/Help_text/index.html
Module Vdom_keyboard.Help_text
A Help_text.t
represents the documentation for a collection of commands. It can be displayed as a Vdom node.
This can be used to create a web ui help menu.
module View_spec : sig ... end
module Command : sig ... end
A Command.t
represents the help text for a single command.
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
val empty : t
val is_empty : t -> bool
val view : ?sep:string -> t -> View_spec.t -> Virtual_dom.Vdom.Node.t
view
displays a help text table with one row per command.
view_rows
is similar to view
, but returns a list of row nodes instead of wrapping them in a table node.
val view_rows : ?sep:string -> t -> View_spec.t -> Virtual_dom.Vdom.Node.t list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>