package bogue

  1. Overview
  2. Docs

Check list with a single choice

Each item of the list is displayed with a 'radio button' in front of it, and at most one item can be selected, similarly to <input type="radio"...> in html. Radiobuttons are implemented with Check.t.

Dependency graph
type t
val vertical : ?name:string -> ?click_on_label:bool -> ?selected:int -> string array -> t

A radiolist with the usual vertical layout of items. The option click_on_label is true be default: one can click on the label to select it.

val layout : t -> Layout.t

The layout to display the radiolist.

val get_index : t -> int option
val set_index : t -> int -> unit

Set the selected entry to the specified index and directly activate the button's connections with the Trigger.var_changed event.

val active_widgets : t -> Widget.t list
  • returns

    the list of widgets that are active for selecting entries (i.e. either radiobuttons or radiobuttons and labels, depending on click_on_label.