Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150022 | Dec 18,2019 08:05 AM UTC | Dec 20,2019 08:02 AM UTC | React - EJ 2 | 3 |
![]() |
Tags: Diagram |
<DiagramComponent id="diagram" width={"100%"} height={"700px"}
click = {(args)=> {
let node = args.element;
if(node.shape && node.shape.type === 'Flow') {
//change borderColor
node.style.strokeColor = 'red';
node.style.strokeWidth = 3;
}
}}/> |
created={(args) => {
//get a nodes collection
let nodes = diagramInstance.nodes;
//iterate a node collection
for (var i = 0; i < nodes.length; i++) {
let node = nodes[i];
node.style.strokeColor = 'red'
}
}} |
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.