12-19-2015 06:34 AM
Hello,
I would like to set the node icon color with a JSON attribute. Is this possible?
Thanks,
Mathias
Solved! Go to Solution.
12-19-2015 11:39 AM
Hi Mathias,
If you pass color as a property of a node in JSON (say, this property is 'color'), the data goes to node's model. That is, you should define node's color in one of explicit ways.
The easiest way around this is to put this piece of code into topology config:
'nodeConfig': {
'color': 'model.color'
}
- Alex
12-19-2015 11:39 AM
Hi Mathias,
If you pass color as a property of a node in JSON (say, this property is 'color'), the data goes to node's model. That is, you should define node's color in one of explicit ways.
The easiest way around this is to put this piece of code into topology config:
'nodeConfig': {
'color': 'model.color'
}
- Alex
12-19-2015 11:51 AM
Hi Alex,
thank you very much for the hint. I included the color attribure in JSON, but did not enhance the nodeConfig... Now everything is fine.
/Mathias
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide