RunUpdaters runs the [NodeBase.Updaters] in sequential descending (reverse) order. It is called in [cogentcore.org/core/core.WidgetBase.UpdateWidget] and other places such as in xyz to update the node.
()
| 116 | // It is called in [cogentcore.org/core/core.WidgetBase.UpdateWidget] and other places |
| 117 | // such as in xyz to update the node. |
| 118 | func (nb *NodeBase) RunUpdaters() { |
| 119 | nb.Updaters.Do(func(updaters []func()) { |
| 120 | for i := len(updaters) - 1; i >= 0; i-- { |
| 121 | updaters[i]() |
| 122 | } |
| 123 | }) |
| 124 | } |
| 125 | |
| 126 | // Add adds a new [PlanItem] to the given [Plan] for a [Node] with |
| 127 | // the given function to initialize the node. The node is |