package js_of_ocaml

  1. Overview
  2. Docs
Compiler from OCaml bytecode to JavaScript

Install

dune-project
 Dependency

Authors

Maintainers

Sources

js_of_ocaml-6.4.0.tbz
sha256=7ae22a7e5a6c6aa14a8e2695fa62c66f32cb20db17f1b45dc21e97009342151f
sha512=6cea398d61d4be8e38e912ba7e4bad4f7b81b10d946cdf29026274b5a4b2cc2709fb75e23f7cbe2db335cc65679c262a8aa1b9148effc987d6e79665a7538286

doc/js_of_ocaml/Js_of_ocaml/Form/index.html

Module Js_of_ocaml.FormSource

This module provides functions to manipulate forms.

Sourceclass type formData = object ... end
Sourcetype form_elt = [
  1. | `String of Js.js_string Js.t
  2. | `File of File.file Js.t
]
Sourcetype form_contents = [
  1. | `Fields of (string * form_elt) list ref
  2. | `FormData of formData Js.t
]
Sourceval append : form_contents -> (string * form_elt) -> unit
Sourceval post_form_contents : Dom_html.formElement Js.t -> form_contents
Sourceval get_form_contents : Dom_html.formElement Js.t -> (string * string) list
Sourceval empty_form_contents : unit -> form_contents
Sourceval form_elements : ?get:bool -> Dom_html.formElement Js.t -> (string * form_elt) list