@bpmn-io/element-templates-icons-renderer
A bpmn-js extension to render element templates icons.
Use Extension
Install via npm:
npm install @bpmn-io/element-templates-icons-renderer
Use in your bpmn-js powered editor:
import ElementTemplatesIconsRenderer from '@bpmn-io/element-templates-icons-renderer';
const viewer = new BpmnViewer({
additionalModules: [
...,
ElementTemplatesIconsRenderer
]
});
In case you want to model with the element template icons, make sure you include the underlying zeebe-bpmn-moddle
descriptors.
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json';
const modeler = new BpmnModeler({
additionalModules: [
...,
ElementTemplatesIconsRenderer
],
moddleExtensions: {
zeebe: zeebeModdle
}
});
Run locally
To run the renderer example, execute:
npm start
Resources