jerosoler / Drawflow

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

create a node on the submit of form not on Drag #753

Open itsrajatcodehub opened 10 months ago

itsrajatcodehub commented 10 months ago

I want to create a node on the submit of a form and the node should contain the data that is filled in the form.

want to create a node like this... image

on the submit of a form image

without drag and drop, how to do this ???

jerosoler commented 10 months ago

On subtmit form function create node with:

editor.addNode('github', 0, 1, 150, 300, 'github', data, html);

View doc "addNode" https://github.com/jerosoler/Drawflow#nodes