Module Brr_io.FormSource

Form elements and form data.

Element

Sourcetype t

The type for HTMLFormElement objects.

Sourceval of_el : Brr.El.t -> t

of_el e is a form from element e. This throws a JavaScript error if e is not a form element.

Sourceval to_el : t -> Brr.El.t

to_el f is f as an an element.

Sourceval name : t -> Jstr.t

name f is the name of f.

Sourceval method' : t -> Jstr.t

method' f is the method of f.

Sourceval target : t -> Jstr.t

target f is the target of f.

Sourceval action : t -> Jstr.t

action f is the action of f.

Sourceval enctype : t -> Jstr.t

enctype f is the enctype of f.

Sourceval accept_charset : t -> Jstr.t

accept_charset f is the charset accepted by f.

Sourceval autocomplete : t -> Jstr.t

autocomplete f refelects the value of the autocomplete attribute of f.

Sourceval no_validate : t -> bool

no_validate f refelects the value of the novalidate attribute of f.

Sourceval check_validity : t -> bool

check_validity f is true if the form's children controls all satisfy their validation constraints.

Sourceval report_validity : t -> bool

report_validity f is like check_validity but also reports problems to the user.

Sourceval request_submit : t -> Brr.El.t option -> unit

request_submist f el requests the form to be submited using button el or the form itself if unspecified.

Sourceval reset : t -> unit

reset f resets the form.

Sourceval submit : t -> unit

submit f submits the form.

Data

Sourcemodule Data : sig ... end

Form data.

Events

Sourcemodule Ev : sig ... end

Form events