bpmn-js-properties-panel
Version:
A simple properties panel for bpmn-js
21 lines (13 loc) • 468 B
JavaScript
;
var nameEntryFactory = require('./implementation/Name'),
is = require('bpmn-js/lib/util/ModelUtil').is;
module.exports = function(group, element, translate) {
if (!is(element, 'bpmn:Collaboration')) {
var options;
if (is(element, 'bpmn:TextAnnotation')) {
options = { modelProperty: 'text' };
}
// name
group.entries = group.entries.concat(nameEntryFactory(element, options, translate));
}
};