Attach/detach property panel from modeler instance

Hi,

is it possible to attach/detach a property panel to/from an existing modeler instance? Currently I see only examples that inject the property panel on instance creation.

Best regards,
Christian

Yes, you can.

var propertiesPanel = bpmnJS.get('propertiesPanel');

// detach the panel
propertiesPanel.detach();

// attach it to some other element
propertiesPanel.attachTo('#other-properties');

Copied from github project page:

Just change the bpmnJS variable to another modeler instance when you would like to switch.

@romero83 Great! Works like a charm. The next time I should double check the documentation.:wink: