package mechaml

  1. Overview
  2. Docs

Module Form.FieldSource

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

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

Set the value of a field

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

Return the content of a field, if any

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

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

Sourceval reset : t -> checkbox input -> t

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