How to add element template to custom bower bpmn js project ?
See original GitHub issuewe are trying to add element template into below custom bower project using code from here https://forum.bpmn.io/t/element-templates-usage-in-property-panel/809/3 we could not achieve element template with this documentation. If we can get some detail help on this issue it would be great ?
index.js
`var BpmnViewer = require('bpmn-js/lib/Modeler');
var camundaModdleDescriptor = require('camunda-bpmn-moddle/resources/camunda');
var additionalModules = [
require('bpmn-js-properties-panel'),
// 1. require camunda provider instead of the bpmn one (!)
require('bpmn-js-properties-panel/lib/provider/camunda')
];
BpmnViewer.prototype._modules = BpmnViewer.prototype._modules.concat(additionalModules);
// 2. include camunda moddle descriptor
BpmnViewer.prototype._moddleExtensions = { camunda: camundaModdleDescriptor }
module.exports = BpmnViewer;`
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to add element template to custom bower bundle?
I have created custom bower bundle using bpmn-js library , everything is working great except element template. we added json file as ...
Read more >How to add element template to custom bower bpmn js project
we are trying to add element template into below custom bower project using code from here ...
Read more >@bpmn-io/element-templates-icons-renderer - NPM Package ...
Use in your bpmn-js powered editor: import ElementTemplatesIconsRenderer from '@bpmn-io/element-templates-icons-renderer'; const viewer = new ...
Read more >How to use the bpmn-js/lib/Viewer.prototype function in ... - Snyk
To help you get started, we've selected a few bpmn-js/lib/Viewer.prototype examples, based on popular ways it is used in public projects.
Read more >bpmn-js-connectors-extension | Yarn - Package Manager
bpmn -js-connectors-extension. CI. This module extends bpmn-js with an element templates everywhere modeling experience.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You cannot use element templates with the
BpmnViewer
(it is a diagram viewer). Use theBpmnModeler
instead.If you got more questions, please open a respective topic in the bpmn.io forum.
i follow this process this.modeler = new Modeler({ container: ‘#canvas’, width: ‘100%’, height: ‘600px’, propertiesPanel: { parent: ‘#properties’ }, additionalModules: [ propertiesPanelModule, propertiesProviderModule, ReplaceMenuProvider, customTranslateModule ], elementTemplates:botdetails.botdetails, moddleExtensions: { camunda: camunda.camunda } }); and i am able to set element templates but after set element templates when we click on task and based on that task need filter accordingly so element templates will display anybody tell me how can i acheive this thing