diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 11:57:14 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 11:57:14 -0600 | 
| commit | 4ef833479cb887b455da7a9d0617a59250cf67f3 (patch) | |
| tree | bc3d34cab0f1a07e10a0e65f1063b7c120426b35 | |
| parent | dbf0a6428539fd44ffe39fb3399735c948e2429b (diff) | |
SetValue()v0.12.18
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | setText.go | 13 | 
1 files changed, 13 insertions, 0 deletions
@@ -55,6 +55,19 @@ func (n *Node) SetText(text string) *Node {  	return n  } +func (n *Node) SetValue(val any) { +	if !n.Ready() { +		return +	} + +	n.value = val +	n.changed = true +	log.Log(CHANGE, "Set() value =", val) + +	// inform the toolkits +	sendAction(n, widget.Set) +} +  func (n *Node) Set(val any) {  	if !n.Ready() {  		return  | 
