jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.64k stars 721 forks source link

How can add or update the number of connections using the input field #191

Closed Yusufzai closed 3 years ago

Yusufzai commented 3 years ago

I want to add or edit a number of connections using the input field

editor.addNode('split-based-on', [DynamicallyUpdate], [DynamicallyUpdate], pos_x, pos_y, 'split-based-on', { widget_name: '', variable: ''}, splitBasedOn );

jerosoler commented 3 years ago

Hi!

Methods: https://github.com/jerosoler/Drawflow#methods

Use methods addNodeInput or addNodeOutput for add.

Or delete: removeNodeInput removeNodeOutput

More info: https://github.com/jerosoler/Drawflow/issues/165#issuecomment-831463588