How to customize/hide default palette items and task types in bpmn-js?

Screenshot 2024-12-04 at 10.23.21 AM

Hi,

I’m working with bpmn-js and I need to:

  1. Hide some of the default palette icons from the left sidebar
  2. Remove/hide specific task types (like User Task and Service Task) from the “Create element” menu

Is this possible? I’d like to customize which elements are available to users in my implementation.

Technical details:

  • Using bpmn-js
  • Need to specifically control visibility of palette items and available task types
  • Want to keep some elements while hiding others

Any guidance on the correct approach would be appreciated!

Thanks!

1 Like

Will be helpful if any one has solution for this. We are having similar issue

Hi,

I believe, there is a PaletteProvider.ts of diagram.js responsible for this. There is an example of extending the palette here, but in your case you would override existing provider.

https://github.com/bpmn-io/diagram-js/blob/main/lib/features/palette/PaletteProvider.ts