function on cancel on dhtmlx color picker

i want to active some javascript function when have event on click cancel on dhtmlx color picker. what i can do?

There is no built in event for such action, you can change logic by overriding clickCancel method

cp = new …
var combo = this.z;
// any custom code here