Adding built-in click event handlers to custom Button

Is it possible to add retool's built-in click event handlers for custom Button?
I have created a custom button and want to add built-in click event handler. I have added in my app but doesn't working.

It can be a bit confusing, the docs page doesn't mention this but the hover tooltip on the HTML element does - you need to add a data-click-target property to the clickable element in your custom HTML



@dcartlidge thanks. Works for my use case.