Tui::Panel
Inherits Tui::Widget / Tui::Reactive / Reference / Object
Constants
BORDERS = {BorderStyle::Light => {h: '─', v: '│', tl: '┌', tr: '┐', bl: '└', br: '┘', tl_title: '┤', tr_title: '├'}, BorderStyle::Heavy => {h: '━', v: '┃', tl: '┏', tr: '┓', bl: '┗', br: '┛', tl_title: '┫', tr_title: '┣'}, BorderStyle::Double => {h: '═', v: '║', tl: '╔', tr: '╗', bl: '╚', br: '╝', tl_title: '╡', tr_title: '╞'}, BorderStyle::Round => {h: '─', v: '│', tl: '╭', tr: '╮', bl: '╰', br: '╯', tl_title: '┤', tr_title: '├'}, BorderStyle::Ascii => {h: '-', v: '|', tl: '+', tr: '+', bl: '+', br: '+', tl_title: ']', tr_title: '['}}
Border characters: tl_title = left of title, tr_title = right of title ┤ receives line from left, ├ sends line to right
Constructors
Instance methods
Override to handle Panel-specific CSS properties
border_color
Sourceborder_color=(border_color : Color)
Sourceborder_style
Sourceborder_style=(border_style : BorderStyle)
Sourcecontent
Sourcecontent_height
Sourcefocus_border_color=(focus_border_color : Color | Nil)
Focus highlighting (when widget is focused)
focus_highlight
Sourcefocus_title_color
Sourcefocus_title_color=(focus_title_color : Color | Nil)
Sourcemax_scroll_y
SourceOverride to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event
Legacy uniform padding setter (use inherited BoxModel padding property)
scroll_lines
Sourceshow_borders
Sourceshow_borders=(show_borders : BorderSides)
Sourcetitle
Sourcetitle_align
Sourcetitle_align=(title_align : Label::Align)
Sourcetitle_color
Sourcetitle_color=(title_color : Color)
Sourcetitle_decor
Sourcetitle_decor=(title_decor : TitleStyle)
Sourcetitle_offset
Sourcetitle_truncate
Sourcetitle_truncate=(title_truncate : TitleTruncate)
Source