package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.15.0.tar.gz
sha256=24c4c3149280abd639034ce3acf60e475a772202099e965be8bd8902524573ef
doc/bonsai.web_ui_form/Bonsai_web_ui_form/View/index.html
Module Bonsai_web_ui_form.View
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.
module Private = View
type t = Private.t
val 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.
val 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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>