package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.15.1.tar.gz
sha256=0c4a714146073f421f1a6179561f836b45d8dc012c743207d3481ea63bef74bf

doc/bonsai.web_ui_form/Bonsai_web_ui_form/View/index.html

Module Bonsai_web_ui_form.ViewSource

Bonsai-web-forms has its own view type so that it can build a more structured view of the form. You can convert it to a Vdom node with the to_vdom* functions.

Sourcemodule Private = View
Sourceval to_vdom : ?custom: (?on_submit:Private.submission_options -> ?editable:Private.editable -> t -> Bonsai_web.Vdom.Node.t) -> ?on_submit:Private.submission_options -> ?editable:Private.editable -> t -> Bonsai_web.Vdom.Node.t

Converts the form to a vdom node. By default, a table. A custom converter (likely written using the View.Expert module) can be specified to be used instead.

Sourceval to_vdom_plain : t -> Bonsai_web.Vdom.Node.t list

This function can be used to acquire the full list of leaf-node form elements sans any formatting, labeling, or error reporting.

OCaml

Innovation. Community. Security.