package mechaml

  1. Overview
  2. Docs

Operations on general fields : textarea, text, password, color, date, etc.

val set : t -> field input -> string -> t

Set the value of a field

val get : t -> field input -> string option

Return the content of a field, if any

val default_value : t -> field input -> string option

Return the default value of a field, specified via the attribute value

val reset : t -> checkbox input -> t

Set the value back to the default value, or just clear the field if there is no default value

OCaml

Innovation. Community. Security.