Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a table that can be drawn.
type TableData ¶
type TableData interface {
// Columns returns the columns of the table.
Columns() []table.Column
// Rows returns the rows of the table.
Rows(ctx context.Context) ([]table.Row, error)
// Selected is called when a row is selected.
// The entire row is passed to the function.
Selected(table.Row) error
}
TableData is the data for a table.
Click to show internal directories.
Click to hide internal directories.