jerosoler / Drawflow

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

need to update node name #682

Open Ashvi213 opened 1 year ago

Ashvi213 commented 1 year ago

Hi, I need to update my node name when my form is submitting. i am using the below code for that

var id: any = #node-${this.selectedNode.id} document.querySelector(id).textContent ="updatedname";

If changing the innerHTML of an element using document.querySelector(id).innerHTML is hiding the input and output connections in a drag and drop interface

need help and suggestion. Thanks in advance

jerosoler commented 1 year ago

You can update the html, which is exported like so:

Or use df-attributes