package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/bonsai.web_ui_form/Bonsai_web_ui_form/Submit/index.html
Module Bonsai_web_ui_form.SubmitSource
Creates a "submit" handler, which is intended to be used by the view_as_vdom function.
handle_enter: when true, will render the form inside of a <form> element, which gives us the ability to add an "on_submit" handler which detecs people hitting "enter" when a form element is focused. The default istrue. Set it tofalseto disable this behavior.button: When Some, will append a button with the label given by its contents. will be added to the end of the form. If the form is currently invalid, the button will be disabled. The default isSome "Submit". Explicitly set it toNoneto remove the button entirely.button_attr: AVdom.Attr.tto attach to the submit button.f: the function which is run when the form is submitted.
Source
val create :
?handle_enter:bool ->
?button:string option ->
?button_attr:Bonsai_web.Vdom.Attr.t ->
?button_location:View.button_location ->
f:('a -> unit Ui_effect.t) ->
unit ->
'a t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>