I need to perform a custom action on a row. For that I want to use the rowheader contextmenu.
How can I know wich row Index is the context menu being applied? the contextMenu e.target seems to be the whole spreadsheet.
I cannot find any clue in either contextmenu or spreadsheet docs or forums.
var rowHeaderContextMenu = this.currentSpreadsheet.rowHeaderContextMenu();rowHeaderContextMenu.remove("[data-action=delete-row]");rowHeaderContextMenu.remove("[data-action=hide-row]");rowHeaderContextMenu.append("<li id='myAction' data-action='row-customaction'>My custom action</li>");rowHeaderContextMenu.bind('select', function(e){ console.log('contextmenu row', e); var rowIndex = ?????????
doMyCustomAction(rowIndex);
});
Extra points if the answer applies also for a cell / columnHeader.
Thanks in advance.