Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149983 | Dec 17,2019 04:11 AM UTC | Feb 14,2020 01:18 PM UTC | Angular - EJ 2 | 10 |
![]() |
Tags: Diagram |
checkParentNode(diagramContent) {
let JSONString = JSON.stringify(diagramContent);
//parse JSON string
let parseData = JSON.parse(JSONString);
//Iterate a nodes
for (var i = 0; i < parseData.nodes.length; i++) {
//get a node
let node = parseData.nodes[i];
//check parentid
if (node.parentId) {
let nodeData = this.diagramControl.getObject(node.parentId);
if (!nodeData) {
node.parentId = '';
}
}
}
return parseData;
} |
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.