Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149257 | Nov 20,2019 09:13 AM UTC | Nov 21,2019 04:10 AM UTC | React - EJ 2 | 1 |
![]() |
Tags: Diagram |
let nodes = [
{
id: "NewIdea",
// define custom information
addInfo: {id: 'NewIdea'},
},]
//get custom information at runtime
function getNode() {
//get nodes
let nodes= diagramInstance.nodes;
// iterate nodes
for(var i=0;i<nodes.length;i++){
let node = nodes[i];
//get a addinfo value;
let nodeId = node.addInfo.id;
if(nodeId = "yourid") {
// do your code
}
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.