cmmn-js-properties-panel
Version:
A simple properties panel for cmmn-js
26 lines (18 loc) • 667 B
JavaScript
;
var forEach = require('lodash/forEach');
var HANDLERS = {
'properties-panel.update-businessobject': require('./UpdateBusinessObjectHandler'),
'properties-panel.update-businessobject-list': require('./UpdateBusinessObjectListHandler'),
'properties-panel.multi-command-executor': require('./MultiCommandHandler')
};
function CommandInitializer(eventBus, commandStack) {
eventBus.on('diagram.init', function() {
forEach(HANDLERS, function(handler, id) {
commandStack.registerHandler(id, handler);
});
});
}
CommandInitializer.$inject = [ 'eventBus', 'commandStack' ];
module.exports = {
__init__: [ CommandInitializer ]
};