Module Brr_io.Form
Form elements and form data.
Element
type t
The type for
HTMLFormElement
objects.
val of_el : Brr.El.t -> t
of_el e
is a form from elemente
. This throws a JavaScript error ife
is not a form element.
val accept_charset : t -> Jstr.t
accept_charset f
is the charset accepted byf
.
val autocomplete : t -> Jstr.t
autocomplete f
refelects the value of the autocomplete attribute off
.
val no_validate : t -> bool
no_validate f
refelects the value of the novalidate attribute off
.
val check_validity : t -> bool
check_validity f
istrue
if the form's children controls all satisfy their validation constraints.
val report_validity : t -> bool
report_validity f
is likecheck_validity
but also reports problems to the user.
Data
module Data : sig ... end
Form data.
Events
module Ev : sig ... end
Form events