How to put label in a custom element

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:
image
I’m not able to put the element label when I render it on the screen. How can you help me?

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.

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.

2 Likes