ContextPad Customization For Multiple Elements

Hi everyone,

I am currently trying to customize the contextPad by giving some custom functionality to a specific contextPad entry. I created and registered a provider and implemented the following method:

getContextPadEntries(element) {
        return (entries) => {
            entries['some-entry'].action = () => {
                // someCustomAction();
            return entries;

This works perfectly fine when a single element is selected. However, when i select multiple elements in my diagram and open up the contextPad, the getContextPadEntries() function seems to be ignored.

Am I missing something? Is this wanted behavior?

Thanks in Advance,

For multi-element, you should provide the entries via getMultiElementContextPadEntries.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.