Best way to listen for events on a panel

If I wanted to create a panel with a button that affects the editor view or editor state what would be the recommended way to listen for events from the panel button?

Add a regular DOM event handler to it.