class

Tui::Collapsible

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

Constructors

new(title : String, id : String | Nil = nil, expanded : Bool = false)
Source

Instance methods

arrow_color
Source
arrow_color=(arrow_color : Color)
Source
border_color
Source
border_color=(border_color : Color)
Source
collapse
Source
content
Source
content=(widget : Widget | Nil)
Source
content_bg
Source
content_bg=(content_bg : Color)
Source
expand
Source
expanded=(value : Bool)
Source
expanded?
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
on_extract
Source
on_toggle
Source
preferred_height

Calculate height needed

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

Override to render widget content

Source
set_content
Source
show_border
Source
show_border=(show_border : Bool)
Source
title
Source
title=(value : String)
Source
title_bg
Source
title_bg=(title_bg : Color)
Source
title_expanded_bg
Source
title_expanded_bg=(title_expanded_bg : Color)
Source
title_expanded_fg
Source
title_expanded_fg=(title_expanded_fg : Color)
Source
title_fg

Style

Source
title_fg=(title_fg : Color)

Style

Source
toggle
Source