Hello Guys, I am very new at BPMN and don’t have any idea what to do next
How do I change the appearance of the arrow based on the custom line menu selection I made?
right now I just copied the one from color picker plugin (to create custom menu) plugin link
PopupMenuProvider.prototype.getEntries = function(element) {
var self = this;
var colors = [{
label: 'One to one',
fill: 'white',
stroke: 'black'
}, {
label: 'One to many',
fill: '#BBDEFB',
stroke: '#1E88E5'
}, {
label: 'Many to many',
fill: '#FFE0B2',
stroke: '#FB8C00'
}, {
label: 'Indeterminate',
fill: '#C8E6C9',
stroke: '#43A047'
}];
var entries = colors.map(function(color) {
return {
label: color.label,
id: color.label.toLowerCase() + '-line',
className: 'custom-line-' + color.label.toLowerCase().replace(/\s/g, ''),
action: createAction(self._modeling, element, color)
};
});
return entries;
};
function createAction(modeling, element, color) {
return function() {
modeling.setColor(element, color);
};
}
not sure how to change or use the action part to change the appearance of a line
Thank you !