This demo shows how to bind to tool events in Toolbar Custom Element.
Modify the shape by changing the options in the toolbar.