package virtual_dom

  1. Overview
  2. Docs
OCaml bindings for the virtual-dom library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.15.1.tar.gz
sha256=7f1fa83287458114c5b0cab8aae00d69972d15e1d20a446ce13f246aacef3216

doc/virtual_dom.keyboard/Vdom_keyboard/Help_text/View_spec/index.html

Module Help_text.View_specSource

Sourcetype t = {
  1. key : string -> Virtual_dom.Vdom.Node.t;
  2. plain_text : string -> Virtual_dom.Vdom.Node.t;
}

A View_spec.t allows the user to customize how the help text is converted to a Vdom node.

Sourceval plain : t

plain converts all help text parts to text nodes without further modification.

Sourceval with_classes : key_class:string -> plain_text_class:string -> t

with_classes converts all help text parts to text nodes and wraps them in spans with the given classes. This allows the user to style the help text using CSS.

OCaml

Innovation. Community. Security.