The example: http://webix.com/demos/traders.html
has this javascript implementation where the column in the datatable will call the “remove” function when the icon “webix_icon” is clicked.
How can I declare this onClick in HTML Markup and process that selected row?
I’ve used this pattern with a select and radio widgets
data-options='json://{"foo":"bar"} '
But this “onClick” handler requires a function which is not acceptable JSON
`
var remove = function(){
console.log(‘remove’)
};
var products = {
id:"products",
view:"datatable",
columns:[
{id:"trash", header:" ", width:35, template:"<span style='cursor:pointer;' class='webix_icon fa-trash-o'></span>"}
],
onClick:{
"webix_icon":remove
}
};
`