Cresium::LapGrid
Inherits Cresium::RenderHelpers < Tui::Widget < Tui::Reactive < Reference < Object
Renders a Stopwatch's laps in columns, most recent first, ROWS
lines per column. Adds columns as long as the widget's width allows.
Constants
ROWS = 5
Instance methods
compact
True to omit milliseconds from lap times (narrow terminals, see
Cresium::LayoutConfig.compact_laps?).
compact=(compact : Bool)
True to omit milliseconds from lap times (narrow terminals, see
Cresium::LayoutConfig.compact_laps?).
laps
Sourcemin_size
No minimum width (columns collapse to zero if there's no room); always
reserves ROWS lines of height.
Draws as many lap columns as fit in the widget's width.
style
Sourcestyle=(style : Tui::Style)
Source