Skip to content

Commit

Permalink
feat(table): added column return func (charmbracelet#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
abeleinin authored Feb 28, 2024
1 parent 8677d49 commit d9fe1a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9fe1a7

Please sign in to comment.