getItemNode

returns HTML element of the item

HTMLElement getItemNode(id id);
ididdata item ID
HTMLElementHTML element of the item

Example

const node = diagram.getItemNode(2);
node.innerHTML = "Second block";

Back to top