2
0
mirror of https://github.com/rivo/tview.git synced 2024-11-12 19:10:28 +00:00

move under setter and change to string

This commit is contained in:
Ori Pekelman 2019-01-09 18:04:51 +01:00
parent 36893a6697
commit f9524f55ba

View File

@ -105,6 +105,11 @@ func (n *TreeNode) SetChildren(childNodes []*TreeNode) *TreeNode {
return n
}
// GetText returns this node's text.
func (n *TreeNode) GetText() string {
return n.text
}
// GetChildren returns this node's children.
func (n *TreeNode) GetChildren() []*TreeNode {
return n.children