How to dynamically update the palette

I now have a custom node that looks like this:

    "create.request": {
      group: "activity",
      className: "bpmn-icon-call-activity",
      title: translate("creat call activity"),
      action: {
        dragstart: createCallActivity,
        click: createCallActivity
      }
    }

image

I want to call the api during initialization, get the custom node information, and dynamically insert custom nodes in the palette. Can you give a simple example? thanks

I already solved this problem with _update()!

1 Like

@Chaomin_Ruan Hey, Can you please tell me how to update entries of Pallete (I need to show Multiple service task in pallete)

I am updating this dynamically, statically you can look at this example:bpmn-js-example-custom-elements

@Chaomin_Ruan Hi, actually I am integrating BPMN modeler in ReactJs. Please guide me in updating or adding service tasks, after api data loaded ?