class

Tui::RadioGroup

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(id : String | Nil = nil)
Source

Instance methods

add_option(id : String, label : String) : Nil
Source
bg_color
Source
bg_color=(bg_color : Color)
Source
fg_color

Style

Source
fg_color=(fg_color : Color)

Style

Source
focus_bg
Source
focus_bg=(focus_bg : Color)
Source
focus_fg
Source
focus_fg=(focus_fg : Color)
Source
horizontal
Source
horizontal=(horizontal : Bool)
Source
on_change
Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
options
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
select_by_id(id : String) : Bool
Source
selected
Source
selected=(index : Int32) : Nil
Source
selected_color
Source
selected_color=(selected_color : Color)
Source
selected_id
Source
spacing
Source
spacing=(spacing : Int32)
Source

Nested types