2024-08-14 15:17:51 +08:00

21 lines
500 B
JavaScript

import entryFactory from 'bpmn-js-properties-panel/lib/factory/EntryFactory';
/** 没用上 */
import {
is
} from 'bpmn-js/lib/util/ModelUtil';
export default function(group, element) {
// Only return an entry, if the currently selected
// element is a start event.
if (is(element, 'bpmn:StartEvent')) {
group.entries.push(entryFactory.textField({
id : 'spell',
description : 'Apply a black magic spell',
label : 'Spell',
modelProperty : 'spell'
}));
}
}