summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-29 22:44:08 -0500
committerJeff Carr <[email protected]>2023-03-29 22:44:08 -0500
commit947169df5a22c9f9b53f825764747f648c70ff1e (patch)
tree3c84fffc14352329bc41e6b58910ff278c99f08c /checkbox.go
parent6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (diff)
ready for version v0.7.4
start deprecating toolkit.Widget switch to variable name 'ParentId' use 'ActionType' and 'WidgetType' preliminary redraw() final definition of variables 'Name' and 'Text' more cleaning of the code remove lots of dumb code bind 'd' key press to dump out debugging info early color handling in gocui! Signed-off-by: Jeff Carr <[email protected]>
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