DHTMLX Docs & Samples Explorer

setOnSelectHandler

setOnSelectHandler event calls user-defined handlers (if there are any) and passes the following parameter:

  • color - the selected color written in hex color format (”#aabbcc”).
        myCP.setOnCancelHandler(function (color) {
            //some code
        })