Button clicks
You can use the onButtonClicked callback to react on button clicks within the configurator UI. The parameter of the callback is the name of the button which has been clicked.
You can use the UI_BUTTON enum to get all available button names:
Example:
It is important that the override function returns true
because if not, nothing gets returned. For example if we want to override only the default behaviour of the Save Draft
button we could write something like this:
You can try and play around with it in the following Code Sandbox.
Last updated