Skip to content

Commit

Permalink
Adds Columns() method for table component
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Vinícius committed Sep 29, 2023
1 parent f53b3d9 commit 2d8c13f
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 2d8c13f

Please sign in to comment.