Posted 7 August 2018, 10:04 am EST
Hello,
With your custom celltype code you can use the code as follows to identify when the custom cell icon is clicked:
$("#ss").click(function (e) {
//Acquire cell index from mouse-clicked point of regular cells which are neither fixed rows/columns nor row/column headers.
var offset = $("#ss").offset();
var x = e.pageX - offset.left;
var y = e.pageY - offset.top;
var target = sheet.hitTest(x, y);
target.cellTypeHitInfo.isReservedLocation
if (target.cellTypeHitInfo.isReservedLocation==true) {
alert("icon clicked");
}
});
Thanks,
Deepak Sharma