mirror of https://github.com/rivo/tview.git
Feature: get table content
This commit is contained in:
parent
a64fc48d76
commit
beddc35dee
5
table.go
5
table.go
|
@ -562,6 +562,11 @@ func (t *Table) SetContent(content TableContent) *Table {
|
|||
return t
|
||||
}
|
||||
|
||||
// GetContent returns current table's content
|
||||
func (t *Table) GetContent() TableContent {
|
||||
return t.content
|
||||
}
|
||||
|
||||
// Clear removes all table data.
|
||||
func (t *Table) Clear() *Table {
|
||||
t.content.Clear()
|
||||
|
|
Loading…
Reference in New Issue