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


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