Check documentation for the latest version of dhtmlxSuite onCancel DHTMLX Docs

onCancel

fires on clicking the "Cancel" button

void onCancel(HTMLElement node){ ... };

Parameters

nodeHTMLElementDOM object of the active input, in case of the input-based initialization, otherwise null

Example

myColorPicker.attachEvent("onCancel", function(node){});

Details

The event is blockable.Return true to close dhtmlXColorPicker on clicking the "Cancel" button, otherwise dhtmlXColorPicker remains open.

Back to top