This is my modeler:
const modeler = (modelerRef.current = new Modeler({
container: bpmContainerRef.current,
keyboard: {
bindTo: window
},
propertiesPanel: {
parent: "#properties"
},
additionalModules: [
BpmnColorPickerModule,
],
})
)
and those methods I’ve found there:
- You can create the lane and then update the label:
const newLane = modeling.addLane(target, position);
modeling.updateLabel(newLane, "new label");
- Does this work for you?