class

Tui::Checkbox

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

Constructors

new(label : String, checked : Bool = false, id : String | Nil = nil)
Source

Instance methods

bg_color
Source
bg_color=(bg_color : Color)
Source
box_style
Source
box_style=(box_style : Symbol)
Source
check_color
Source
check_color=(check_color : Color)
Source
checked=(value : Bool) : Nil
Source
checked?
Source
checked_char
Source
checked_char=(checked_char : Char)
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
label
Source
label=(value : String) : Nil
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
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
toggle
Source
unchecked_char
Source
unchecked_char=(unchecked_char : Char)
Source