summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/checkbox.go b/checkbox.go
index 353072f..8ece750 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -10,10 +10,9 @@ func (n *Node) NewCheckbox(name string) *Node {
newNode := n.New(name, toolkit.Checkbox, nil)
var a toolkit.Action
- a.Type = toolkit.Add
- // a.Widget = &newNode.widget
- // a.Where = &n.widget
- // action(&a, newNode, n)
+ a.ActionType = toolkit.Add
+ a.Name = name
+ a.Text = name
newaction(&a, newNode, n)
return newNode