Skip to content

bpmn-io/bpmn-js-element-templates

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fda17b4 · Dec 2, 2024
Nov 15, 2024
Aug 24, 2023
Dec 2, 2024
Dec 2, 2024
Nov 29, 2021
Sep 23, 2024
Jun 18, 2015
Jun 29, 2023
Jul 8, 2021
Nov 7, 2024
Oct 12, 2023
Dec 2, 2024
Dec 2, 2024
Sep 28, 2022
Jul 3, 2024

Repository files navigation

bpmn-js-element-templates

An element templates provider, previously available from bpmn-js-properties-panel.

Usage

Use this module in addition to bpmn-js-properties-panel.

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
  ]
});

Additional resources

Development

Prepare the project by installing all dependencies:

npm install

Then, depending on your use-case, you may run any of the following commands:

# build the library and run all tests
npm run all

# spin up a single local modeler instance
npm start

# run the full development setup
npm run dev

License

MIT