Add controls to the dynamic macro propertyPanel as (i.e.https://developer.atlassian.com/cloud/confluence/modules/macro-property-panel), You should be able to add the UI components, however, handlers to the components are not binded properly:
- Add the propertyPanel element to the macro and define a number of buttons.
- The buttons appear on the macro panel, and properties-panel.html loads as expected.
- In your html, I include all.js and execute onMacroPropertyPanelEvent to associate event handlers to the buttons. Add debugger statements to see if the various actions are being executed. Here is the code:
Aside from the events not binded, the event handler names are not in the documentation. The pages, and confluence.onMacroPropertyPanelEvent() executes without error, but the event functions do not execute when a button is clicked.