I am using the react libraries ej2-react-diagrams. I am using the flow diagram and just some basic flow nodes.
I followed the example and used annotations to set the label on the node.
I am trying to change the background to black and the label color to white.. for the start and stop nodes.
I am unable to change the color :-(
I tried all variety techniques and attributes even trued to use 'labels' that I saw in other platforms.. nothing works.
can someone show how to set the label on a node to a different color? please please.
{
id: "start",
width: 50,
height: 40,
fontSize: 20,
addInfo: { fontColor: "red", },
shape: { type: "Flow", shape: "Terminator" },
style: {
fill: 'yellow',
strokeColor: 'red',
foreground: 'red',
foregroundColor:'blue'
},
labels: [{ "text": "Task 1" }],
annotations: [{ content: 'Start', foreground: 'red',style: {foreground:'red'}}]
}