I want to basically change a particular tspan that comes under text of an element label. As write now the whole text is a string so if i apply style to djs-label class, it will change the whole text but i want to change only a particular tspan under that text. Is there any way i can achieve it.
I want to achieve something like this, where you can see after In Take, the In Progress is shown in different font color and size. So need to specifically style the In Progress part.
I am basically generating XML string for the diagram, in order to show the label, i am adding name to bpmn:task , and in the name i am pass string as - Intake \n In progress
OK so I assume the second line is supposed to represent something different than the element way. In that case, the non-hacky and stable solution would involve the overlays: Overlays and more Modeling | Blog | bpmn.io
This is what I’d suggest to use instead of adding a line to the label.