# element-template-chooser **Repository Path**: mirrors_bpmn-io/element-template-chooser ## Basic Information - **Project Name**: element-template-chooser - **Description**: A simple element template chooser for properties-panel >= 1. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-15 - **Last Updated**: 2025-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # `@bpmn-io/element-template-chooser` [![CI](https://github.com/bpmn-io/element-template-chooser/actions/workflows/CI.yml/badge.svg)](https://github.com/bpmn-io/element-template-chooser/actions/workflows/CI.yml) A simple element template chooser for [`properties-panel >= 1`](https://github.com/bpmn-io/bpmn-js-properties-panel). ![screenshot](./resources/screenshot.png) ## Usage ```javascript import BpmnModeler from 'bpmn-js/lib/Modeler'; import '@bpmn-io/element-template-chooser/dist/element-template-chooser.css'; import ElementTemplateChooserModule from '@bpmn-io/element-template-chooser'; const modeler = new BpmnModeler({ additionalModules: [ ... ElementTemplateChooserModule ], ... }); // load templates modeler.on('elementTemplates.errors', event => { const { errors } = event; showTemplateErrors(errors); }); modeler.get('elementTemplatesLoader').setTemplates(ELEMENT_TEMPLATES_JSON); // choose via the properties panel, _OR_ // open the chooser programmatically for a given element const template = await ( modeler.get('elementTemplateChooser').open(element) ); ``` Checkout [`./example`](./example) for a full featured integration example. ## Run locally To run the [example app](./example), execute: ``` npm start ``` ## License MIT