package bonsai
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.View
Source
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.
Source
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>