Instead of using the cellClick event and/or the column context menu, we would like to use native anchor elements in the columns renderer.
Desired behaviour:
CTRL + click or target="_blank" will open the destination in a new tab
Observed behaviour:
Neither will open the destination in a new tab, but the current tab.
Our configuration:
const columns = {
data: [{
type: 'tree',
text: '',
field: 'name',
htmlEncode: false,
renderer({ record }) {
return `
<div>
<a href="some-destination" target="_blank">click me</a>
<a href="some-other-destination" target="_blank">click me, too</a>
</div>
`;
},
},
],
Is there anything we can do, to make it work?