retejs / rete

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

How to update Node in rete@next #612

Closed daef closed 1 year ago

daef commented 1 year ago

The node in rete v2 has no update function anymore. How can I force rete to redraw a node after dynamically changing a label? I'm using vue-render-plugin and try for example to update editor.nodes[0].inputs.test.label or simply editor.nodes[0].label, but it doesn't show. It updates as soon as I select a node thou. Is it possible to force such an update from code?

Ni55aN commented 1 year ago

https://retejs.org/docs/faq/#force-update

It updates as soon as I select a node thou

Indeed, it force updates the node every time the node is picked

daef commented 1 year ago

sorry, I'm browsing the examples and the code, but I'm too stupid to RTFM

Ni55aN commented 1 year ago

As for me, manuals are boring 😀 I prefer to study through examples with code too. At the same time, we must not forget the search. This version of website uses DocSearch which is a pretty powerful thing