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:
parent
36893a6697
commit
f9524f55ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user