NodeWalkDown extends [tree.Node.WalkDown] to [WidgetBase.Parts], which is key for getting full tree traversal to work when updating, configuring, and styling. This implements [tree.Node.NodeWalkDown].
(fun func(tree.Node) bool)
| 407 | // which is key for getting full tree traversal to work when updating, |
| 408 | // configuring, and styling. This implements [tree.Node.NodeWalkDown]. |
| 409 | func (wb *WidgetBase) NodeWalkDown(fun func(tree.Node) bool) { |
| 410 | if wb.Parts == nil { |
| 411 | return |
| 412 | } |
| 413 | wb.Parts.WalkDown(fun) |
| 414 | } |
| 415 | |
| 416 | // ForWidgetChildren iterates through the children as widgets, calling the given function. |
| 417 | // Return [tree.Continue] (true) to continue, and [tree.Break] (false) to terminate. |