gizak / termui

Golang terminal dashboard
MIT License
13.07k stars 783 forks source link

Table render improvements #222

Closed ryanlewis closed 5 years ago

ryanlewis commented 5 years ago

This PR does two things:

This introduces some configuration that is similar to what was in before the refactor, and allows individual rows to be styled, including for example headers.

The example provided here renders the following:

image

cjbassi commented 5 years ago

Thanks! Everything here looks good. Also makes it easier to create a cursor for the table for when we add scrolling to it.