package mechaml

  1. Overview
  2. Docs

Module Form.CheckboxSource

Operation on Checkboxes

Sourceval value : checkbox input -> string

Return the value (the label) of a checkbox

Sourceval values : t -> checkbox input -> string list

Return the values of all the checkboxes with the same name as the given one

Sourceval choices : t -> checkbox input -> checkbox input seq

Return all the checkboxes with the same name as the given one

Sourceval checked : t -> checkbox input -> string list

Return the list of all checked checkboxes with the same name as the given one

Sourceval check : t -> checkbox input -> t

check form cb return form where cb is checked

Sourceval uncheck : t -> checkbox input -> t

uncheck form cb return form where cb is unchecked

Sourceval is_checked : t -> checkbox input -> bool

Check if the specified checkbox is checked

Sourceval checked_default : t -> checkbox input -> string list

Values with the checked attribute set

Sourceval reset : t -> checkbox input -> t

Reset to its default value, meaning that only the checkboxes with the checked attribute will be checked

OCaml

Innovation. Community. Security.