Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxColumnWidth caps how wide a column can be. MaxColumnWidth = 100 // MinTableHeightRows ensures the viewport is never too small to render properly. MinTableHeightRows = 2 )
Variables ¶
View Source
var ( // ErrNoColumns indicates there were no columns to display. ErrNoColumns = eris.New("no columns to display") )
Functions ¶
Types ¶
type Model ¶
type Model struct {
Columns []string // headers
Rows [][]string // cells per row
// contains filtered or unexported fields
}
Model represents the UI state for a read-only table view.
func InitialModel ¶
InitialModel creates a new Model with the given columns and rows.
func (*Model) Init ¶
Init initializes the bubbletea model and schedules a quit on the next tick to allow one render.
Click to show internal directories.
Click to hide internal directories.