Example of how to create a custom Event for a widget.