expose table's rows

This commit is contained in:
Marc-Antoine
2022-12-01 09:30:35 -05:00
committed by Maas Lalani
parent 6555e5111e
commit b528165592
+5
View File
@@ -269,6 +269,11 @@ func (m Model) SelectedRow() Row {
return m.rows[m.cursor]
}
// Rows returns the current rows.
func (m Model) Rows() []Row {
return m.rows
}
// SetRows set a new rows state.
func (m *Model) SetRows(r []Row) {
m.rows = r