Sending custom event from javascript to phaser game object

I’m trying to send a custom event to a Phaser game from an external element (an HTML button, for example). How do I get access to the events.emit() function?

I was able to accomplish what I needed by using dat.gui. It’s a great tool!