I have an ID in column 0, and a display value in column 1…
How would I get the id (or value) from column 0 and use that in a hyperlink I need in column 1 ?
Thx,
Joe
I have an ID in column 0, and a display value in column 1…
How would I get the id (or value) from column 0 and use that in a hyperlink I need in column 1 ?
Thx,
Joe
ok I figured it out… this is how I got the hyperlink to work…
Blockquote
// Create a custom renderer for hyperlinks
function hyperlinkRenderer(instance, td, row, col, prop, value, cellProperties) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
var link = instance.getDataAtCell(row, 0);
// Add the hyperlink to the cell
td.innerHTML = '<a href="bins/' + link + '" target="_blank">' + value + '</a>';
};
and I hide column 0.