jerosoler / Drawflow

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

How add a bottom bar with id to box ? #709

Closed LBouzac closed 1 year ago

LBouzac commented 1 year ago

image

jerosoler commented 1 year ago

Hello,

You can get the ID in two ways:

const idNode = addNode(...)

Or by the DOM.
The node always embeds the ID of the node.

<div id="node-1" class="drawflow-node welcome selected" style="top: 50px; left: 50px;"><div class="inputs"></div><div class="drawflow_content_node" >

You could also override the addNode and addNodeImport functions to include the id.

LBouzac commented 1 year ago

thanks you