How to put label in a custom element


#1

I’m using the bpmnJS library to create a supervisor, I can customize the menu with the elements I want using the example https://github.com/bpmn-io/bpmn-js-example-custom-shapes. as the picture shows:


I’m not able to put the element label when I render it on the screen. How can you help me?


#2

Hi @Isa_Thais,

Can you please ask your question in English again? That’s the official language here in this forum. Not everyone will understand Portuguese.


#3

I advice you to have a look at the diagram-js-direct-editing module to create labels. You can then use the TextRenderer like in the following snipped or use the diagram-js Text utils and add it to the canvas yourself.