You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've rendered html of button inside cell but I can't get the onclick of it in my angular 5's component. Does anyone know the way of doing it? I tried angular's (click) functionality too but nothing worked, tried to call aler on onclick and got no success.
Hi,
I've rendered html of button inside cell but I can't get the onclick of it in my angular 5's component. Does anyone know the way of doing it? I tried angular's (click) functionality too but nothing worked, tried to call aler on onclick and got no success.
columns.push({ data: index, renderer: function percentRenderer(instance, td, row, col, prop, value, cellProperties) { Handsontable.renderers.HtmlRenderer.apply(this, arguments); if(value.data == 'TRUE'){ td.innerHTML = '✔'; } else if(value.data == 'FALSE'){ td.innerHTML = '✖'; } else if(value.data == 'UNMARKED'){ td.innerHTML = '<button onclick="alert(\'clicked\')" value="\'TRUE\'">✔</button> <button value="\'FALSE\'">✖</button>'; } else{ td.innerHTML = value.data; } } });
Please help, thanks
The text was updated successfully, but these errors were encountered: