From 9a7c783a75aa4b6a661632642852fdd6e5a9de7b Mon Sep 17 00:00:00 2001 From: Abe Leininger <95333017+abeleinin@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:39:37 -0500 Subject: [PATCH] feat(table): added column return func (#369) --- table/table.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/table/table.go b/table/table.go index 36549e3..c389a0d 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