Click events in matlab offline mode?

I’m trying to register an “on_click” callback function in matlab when running in offline mode and can’t find any information on how to do this. I’ve only found examples to do this using javascript. How are click/hover callbacks exposed in offline mode in matlab?
Basically I need to call a function do display another graph when the user clicks on a point in a matrix of plot.

Thank you!