DHTMLX Docs & Samples Explorer

onHide

Fires when the calendar becomes hidden (useful when attached to an input)

myCalendar.attachEvent("onHide", function(){
    // your custom code
});