How to add event handler in grafana button?

I dragged the button, now I want to add the handler for it. I don’t know how to add it.

are you developing a plugin? this is not enough information for the community to provide help