summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/tab.go b/tab.go
index 702e99f..49632ee 100644
--- a/tab.go
+++ b/tab.go
@@ -11,8 +11,11 @@ func (n *Node) NewTab(text string) *Node {
newNode := n.New(text, toolkit.Tab, nil)
var a toolkit.Action
- a.Type = toolkit.Add
+ a.ActionType = toolkit.Add
+ a.Name = text
+ a.Text = text
newaction(&a, newNode, n)
- return newNode
+ newBox := newNode.NewBox(text, true)
+ return newBox
}