You need to create your custom button widget (if you haven’t already). There you override OnMouseButtonDownFunction like so:
But if you just want to display info you can do it with OnHovered