package mechaml

  1. Overview
  2. Docs

Operation on Checkboxes

val value : checkbox input -> string

Return the value (the label) of a checkbox

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

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

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

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

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

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

val check : t -> checkbox input -> t

check form cb return form where cb is checked

val uncheck : t -> checkbox input -> t

uncheck form cb return form where cb is unchecked

val is_checked : t -> checkbox input -> bool

Check if the specified checkbox is checked

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

Values with the checked attribute set

val 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.