struct TUI::Cell

Overview

A styled string, e.g. one TableView column value or DetailView row's value. #style is resolved to an actual ANSI sequence only at render time via CellStyle.apply — the default Style.new renders #text plain.

Defined in:

tui/widgets/cell.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, style : Style = Style.new) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(text _text = @text, style _style = @style) #

[View source]
def style : Style #

def text : String #