retejs / rete

JavaScript framework for visual programming
https://retejs.org
MIT License
10.17k stars 653 forks source link

[Question] node._alight.scan() #541

Closed lancety closed 3 years ago

lancety commented 3 years ago

I am trying to make module textControl change update module input output once the text value match a module name.

From https://codepen.io/Ni55aN/pen/QOEbEW?editors=0010, I saw it used node._alight.scan(). I guess it exist if I use alight plugin, but from some of the "issues" seems alight is depreciated? Then what is the right way to make module node update its input output when its text control have right module name? Thanks for help.

lancety commented 3 years ago

I justed tried node.update() which works. wondering if this is the right way to let module node update its UI

lancety commented 3 years ago

find more recent disucssion I think I can confirm node.update() is the right way to update control UI component