class

Tui::Label

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

Constructors

new(text : String = "", id : String | Nil = nil, style : Style = Style.default, align : Align = Align::Left)
Source
new(text : String, id : String | Nil = nil, fg : Color | Nil = nil, bg : Color | Nil = nil, bold : Bool = false, align : Align = Align::Left) : Label

Convenience constructor with named style

Source

Instance methods

align
Source
align=(align : Align)
Source
apply_css_style(css_style : Hash(String, CSS::Value)) : Nil

Override to handle text-specific CSS properties

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

Override to render widget content

Source
style
Source
style=(style : Style)
Source
text
Source
text=(value : String) : String
Source
text_opacity
Source
text_opacity=(text_opacity : Float64)
Source
text_overflow
Source
text_overflow=(text_overflow : TextOverflow)
Source
text_wrap
Source
text_wrap=(text_wrap : TextWrap)
Source
watch_text(value : String)

Override this to react to changes

Source

Nested types