How to use the bpmn-js-properties-panel/lib/helper/CmdHelper.removeElementsFromList function in bpmn-js-properties-panel

To help you get started, we’ve selected a few bpmn-js-properties-panel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / implementation / InputOutput.js View on Github external
return (element, extensionElements, value, idx) => {
      const inputOutput = getInputOutput(element);
      const parameter = getter(element, idx);

      const commands = [];
      commands.push(cmdHelper.removeElementsFromList(element, inputOutput, prop, null, [ parameter ]));

      const firstLength = inputOutput.get(prop).length-1;
      const secondLength = (inputOutput.get(otherProp) || []).length;

      if (!firstLength && !secondLength) {

        commands.push(extensionElementsHelper.removeEntry(getBusinessObject(element), element, inputOutput));
      }

      return commands;
    };
  };
github zeebe-io / zeebe-modeler / client / src / app / tabs / bpmn / custom / properties-provider / parts / implementation / PayloadMappings.js View on Github external
return (element, extensionElements, value, idx) => {
      const payloadMappings = getPayloadMappings(element);
      const parameter = getter(element, idx);

      const commands = [];
      commands.push(cmdHelper.removeElementsFromList(element, payloadMappings, prop, null, [parameter]));

      const firstLength = payloadMappings.get(prop).length - 1;

      if (!firstLength) {

        commands.push(extensionElementsHelper.removeEntry(getBusinessObject(element), element, payloadMappings));
      }

      return commands;
    };
  };

bpmn-js-properties-panel

A simple properties panel for bpmn-js

MIT
Latest version published 7 days ago

Package Health Score

90 / 100
Full package analysis