Custom page in Grafana

Hi team,

I am creating a custom page in garafana. Custom page contain panels of Grafana. The panel contains builtin features of view, edit share etc. When we click the view button the panel changes to full screen mode. I would like to get a event in my controller when the user clicks view or any buttons in panel header. Is it possible?

Please help