camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.49k stars 476 forks source link

Add ability to edit plugin config from client extension #1512

Closed pinussilvestrus closed 4 years ago

pinussilvestrus commented 4 years ago

Is your feature request related to a problem? Please describe.

Make it possible for editor extension to set and get properties in the plugin config via a client extension.

Describe the solution you'd like

Minimal API for accessing the already implemented Config implementation (cf. #1496) via client extension, so something like

// plugin-component.js
const {
  config
} = props;

await config.setForPlugin(name, key, value);

Additional context

The overall setting and getting functionality was already implemented by #1494


Child of #1496

pinussilvestrus commented 4 years ago

This will probably also help when it comes to implementing deployment configuration savings, cf. https://github.com/camunda/camunda-modeler/issues/1066

pinussilvestrus commented 4 years ago

Already exposed via https://github.com/camunda/camunda-modeler/commit/6abc68acf14918cfd334a247256ddffaed266f54, I will add a minimal example on how to use it in client extensions.

pinussilvestrus commented 4 years ago

The TestClient plugin offers a minimal example of how to use the config API in client extensions.

Closed via d868bdb38f9d573556a409126cff4c4c8ab8d2a4