Diagram events are the actions that can be detected by JavaScript
and the event argument are the information
about the event that has occurred. Some time we want to execute some JavaScript when and event occurs, such as when the
user clicks on the node. We can achieve this scenario using click
event of the diagram. So, in this shows
how to hook all the diagram events and how to handle its arguments
.