setEventHandler

setEventHandler(int eventType, String handler) function

Sets event handler for the shape

Parameters

NameTypeDescription
eventTypeintType of event.
handlerStringJavascript function to handle event. Null value removes handler.