diff --git a/table/table.go b/table/table.go index 36549e3b..c389a0d0 100644 --- a/table/table.go +++ b/table/table.go @@ -276,6 +276,11 @@ func (m Model) Rows() []Row { return m.rows } +// Columns returns the current columns. +func (m Model) Columns() []Column { + return m.cols +} + // SetRows sets a new rows state. func (m *Model) SetRows(r []Row) { m.rows = r