Open fullscreen | Source on github | Edit on stackblitz
The datagrid emits composite mouse event which makes it easier to find the elements affected by the user action -
function onMouse({row}){
alert(`row ${row.key} clicked!`);
}
$('ax-datagrid')
.prop({ columns, rows })
.on('mouse', event => onMouse(event.detail))
.mount();
Read more: