struct TUI::DetailLine

Overview

One label/value row in a DetailView. #label is plain text; #value is a styled Cell so a row can carry its own color/emphasis independent of DetailView's own rendering (bold labels, dimmed wrap markers, etc).

Defined in:

tui/data_sources/detail_data_source.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, value : Cell) #

[View source]
def self.new(label : String, value : String) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(label _label = @label, value _value = @value) #

[View source]
def label : String #

def value : Cell #