class abc extends React.Component{
_handleClick(){
console.log("some API call and state change");
}
}
columndefs: [
{headerName:'Label', field: 'label', width:130, pinned:'left', cellClass:'ag-cell-text-align-center', cellRenderer:linkRenderer},
{headerName:'Received', field: 'receivedDate', width:130, cellClass:'ag-cell-text-align-center'},
]
function linkRenderer(){
return params.data.link ? `<span style=text-decoration:underline;color:blue;cursor:pointer onClick="this._handleClick()">${params.value}</span>`: params.value;
}
This is telling that "this._handleClick is not a function" So, how to call this._handleClick inside linkRenederer