Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column[T any] struct { // Title is the column header text Title string // String extracts the cell value from a row as a plain string String func(row T) string // Style applies styling to a cell value (optional, can be nil) Style func(rendered string, row T) string // AlignRight aligns the content to the right (default is left) AlignRight bool }
Column defines a single column.
type Option ¶
Option is a functional option for configuring a Table.
func WithHeaderStyle ¶
WithHeaderStyle sets the style for column headers.
func WithStylesDisabled ¶
WithStylesDisabled sets whether to disable styles.
Click to show internal directories.
Click to hide internal directories.