package inquire

  1. Overview
  2. Docs
An OCaml library to create beautiful interactive CLIs

Install

Dune Dependency

Authors

Maintainers

Sources

inquire-0.2.1.tbz
sha256=0b88d89e24d4cbc0560a7c8d8ec51388990e1b27f24685029997afa52a7c720f
sha512=8b62860a8d15e41528a404a6f1b9968c3d79755607b5ea319af2e3e45516e672a785361d278279910928db4054e1800e87bcee0210ff3eabfb330713b368c827

doc/inquire.lambda-term/LTerm_widget/class-radiobutton/index.html

Class LTerm_widget.radiobuttonSource

Radiobutton. The button which implements radio object contract, so can be added to radiogroup.

inherit t
method state : bool

The state of the button; true if button is "on" and false if the button is "off".

method on : unit

Switches the button state to "on". Affects only how the button is drawn, does not change the state of the group the button is added to. Use radiogroup.switch_to instead.

method off : unit

Switches the button state to "off". Affects only how the button is drawn, does not change the state of the group the button is added to. Use radiogroup.switch_to instead.

method label : string

The text displayed on the radiobutton.

method label_zed : Zed_string.t

The text displayed on the button.

method set_label : string -> unit
method id : 'a

The id of the button.

method on_click : ?switch:LTerm_widget_callbacks.switch -> (unit -> unit) -> unit

on_click ?switch f calls f when the button is clicked. You probably want to use radiogroup.on_state_change instead.

OCaml

Innovation. Community. Security.