Module Brr_io.Form
Form elements and form data.
Element
The type for HTMLFormElement objects.
val of_el : Brr.El.t -> Brr_io.Form.tof_el e is a form from element e. This throws a JavaScript error if e is not a form element.
val to_el : Brr_io.Form.t -> Brr.El.tto_el f is f as an an element.
val name : Brr_io.Form.t -> Jstr.tname f is the name of f.
val method' : Brr_io.Form.t -> Jstr.tmethod' f is the method of f.
val target : Brr_io.Form.t -> Jstr.ttarget f is the target of f.
val action : Brr_io.Form.t -> Jstr.taction f is the action of f.
val enctype : Brr_io.Form.t -> Jstr.tenctype f is the enctype of f.
val accept_charset : Brr_io.Form.t -> Jstr.taccept_charset f is the charset accepted by f.
val autocomplete : Brr_io.Form.t -> Jstr.tautocomplete f refelects the value of the autocomplete attribute of f.
val no_validate : Brr_io.Form.t -> boolno_validate f refelects the value of the novalidate attribute of f.
val check_validity : Brr_io.Form.t -> boolcheck_validity f is true if the form's children controls all satisfy their validation constraints.
val report_validity : Brr_io.Form.t -> boolreport_validity f is like check_validity but also reports problems to the user.
val request_submit : Brr_io.Form.t -> Brr.El.t option -> unitrequest_submist f el requests the form to be submited using button el or the form itself if unspecified.
val reset : Brr_io.Form.t -> unitreset f resets the form.
val submit : Brr_io.Form.t -> unitsubmit f submits the form.
Data
module Data : sig ... endForm data.
Events
module Ev : sig ... endForm events
val to_jv : Brr_io.Form.t -> Jv.jvval of_jv : Jv.jv -> Brr_io.Form.t