Spreadsheets / WickedGrid

Easy & Wicked Fast spreadsheets for the web
http://spreadsheets.github.io/WickedGrid
587 stars 131 forks source link

how to write event for cell selection? #107

Open srivasmca opened 7 years ago

srivasmca commented 7 years ago

for each selection of cell ,cell selection event should be occur and gives cell value row index and column index. please help me.thanks in advance for any help

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40469591-how-to-write-event-for-cell-selection?utm_campaign=plugin&utm_content=tracker%2F609152&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F609152&utm_medium=issues&utm_source=github).
MrH2H commented 7 years ago

Hi,Thank you very much for your last reply. is this problem fixed?

maybe we can add html to cell selection.

 $('#setCellhtml').click(function() {
             var jS = sheetOrig.getSheet(),
                   tds =jS.highlighted();
                   loc = jS.getTdLocation(tds[0]),
                   jshtml = '<a href="#" onclick=\'alert("Hello WickedGrid")\'>Click</a>';
                   $(tds[0]).html(jshtml);
 });