To use the forums I can sign in with a ‘local’ account, but to comment on the forums I have to use any other. I’m not that interested in sharing my facebook/ twitter/ google accounts for obvious reasons. Why do you make me?
Here’s a comment on
http://docs.webix.com/api__mouseevents_onclick_config.html
This code works and I think is what the example is meant to be demonstrating.
var small_film_set = [
{ id:1, title:"The Shawshank Redemption", year:1994, votes:678790, rating:9.2, rank:1},
{ id:2, title:"The Godfather", year:1972, votes:511495, rating:9.2, rank:2},
{ id:3, title:"The Godfather: Part II", year:1974, votes:319352, rating:9.0, rank:3},
{ id:4, title:"The Good, the Bad and the Ugly", year:1966, votes:213030, rating:8.9, rank:4},
{ id:5, title:"My Fair Lady", year:1964, votes:533848, rating:8.9, rank:5},
{ id:6, title:"12 Angry Men", year:1957, votes:164558, rating:8.9, rank:6}
];
webix.ui({
view:"datatable",
columns:[
{ id:"rank", header:"", css:"rank", width:50},
{ id:"title", header:"Film title",width:200},
{ id:"", template:"<input class='delbtn' type='button' value='Delete'>",
css:"padding_less",width:100 }
],
data:small_film_set,
on:{
"onItemClick":function(id, e, trg){
webix.message("Click on row: " + id.row+", column: " + id.column);}
} //default click behavior that is true for any datatable cell
,
// click behavior for the cell with a button styled with 'delbtn' class
onClick:{"delbtn":function(e, id, trg){
webix.message("Delete row: "+id);
return false; //here it blocks default behavior
}}
});