Hi Everyone:
With the code below, I am trying to message out the row id … but this.getItemValue(id) is coming up undefined.
var user = “”;
var cog = “”;
var conf = [{ id:“title”, fillspace:true },
{ id:“Icons Buttons”, width:200, template:user+cog}];
webix.ui({ rows:[
{ view:“datatable”, columns:conf, data:grid_data,
onClick:{
“fa-user”:function(){
webix.message("USER id = " + this.getItemValue(id));
},
“fa-cog”:function(){
webix.message("COG id = " + this.getItemValue(id));
}
}
}
] });