package bogue

  1. Overview
  2. Docs

Module Bogue.RadiolistSource

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.

  • see Example #29

    .

Dependency graph
Sourcetype t
Sourceval 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.

Sourceval of_widgets : ?selected:int -> Widget.t list -> t
Sourceval layout : t -> Layout.t

The layout to display the radiolist.

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

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

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