I'm trying to write a callback function for a DT:datatable which does an updateTabItems in response to a double click on a row. The double click response looks like:
callback = JS('
table.on("dblclick.dt","tr", function() {
var data=table.row(this).data();
alert("You clicked on a row!");}
)
')
which works, but I don't really want an alert, I want the equivalent of updateTabItems(session,"id",newtab)
But the callback only accepts JavaScript. Anyone know how to do this in JavaScript?
thanks!