package mechaml

  1. Overview
  2. Docs

Module Form.RadioButtonSource

Operations on Radio Buttons

Similar to checkboxes, except that selecting one radio button in group automatically unselect the others

Sourceval value : radio_button input -> string

Return the value (the label) of a radio button

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

Return the values of all the radio buttons with the same name as the given one

Return all the radio buttons with the same name as the given one

Sourceval selected : t -> checkbox input -> string option

Return the possibly selected radio button

Sourceval select : t -> radio_button input -> t

select form rb return form where rb is selected

Sourceval is_selected : t -> radio_button input -> bool

Check if the specified radio button is selected

Sourceval selected_default : t -> radio_button input -> string option

Values with checked attribute set

Sourceval reset : t -> checkbox input -> t

Reset to its default value, meaning that only the radio buttons with the checked attribute will be selected

OCaml

Innovation. Community. Security.