bpmn-js-element-templates
Version:
Element templates for bpmn-js
67 lines (48 loc) • 1.73 kB
Markdown
//github.com/bpmn-io/element-templates) provider for [bpmn-js](https://github.com/bpmn-io/bpmn-js).
Use this module in addition to [bpmn-js](https://github.com/bpmn-io/bpmn-js) and the [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel#usage):
```javascript
import BpmnModeler from 'bpmn-js/lib/Modeler';
import {
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
} from 'bpmn-js-properties-panel';
import {
ElementTemplatesPropertiesProviderModule, // Camunda 7 Element Templates
// CloudElementTemplatesPropertiesProviderModule // Camunda 8 Element Templates
} from 'bpmn-js-element-templates';
const modeler = new BpmnModeler({
container: '#canvas',
propertiesPanel: {
parent: '#properties'
},
additionalModules: [
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
ElementTemplatesPropertiesProviderModule,
// CloudElementTemplatesPropertiesProviderModule
]
});
```
To set an element template from the properties panel, plug-in an [element template chooser](https://github.com/bpmn-io/element-template-chooser).
* [About element templates](https://github.com/bpmn-io/element-templates)
* [Issue tracker](https://github.com/bpmn-io/bpmn-js-element-templates/issues)
* [Forum](https://forum.bpmn.io)
Prepare the project by installing all dependencies:
```sh
npm install
```
Then, depending on your use-case, you may run any of the following commands:
```sh
npm run all
npm start
npm run dev
```
MIT
An [element templates](https: