Sets an onclick event-handler method for handling click-actions on the button.

Syntax

<function> ToolbarButton.onclick