SOLVED: common.checkbox() alternative with value and attribute

After investigating how the common.checkbox() works I found how can someone include value and attributes in checkbox using also highlighting row

The configuration of the column you want the checkbox should have template like this

cssFormat:chkClick,

template: function(obj, type, value, config, i){
if ( value == 1) 
return '<input value='+obj.uid+' class="webix_table_checkbox" 
type="checkbox" checked="true">';
else 
return '<input value='+obj.uid+' class="webix_table_checkbox" 
type="checkbox">';
},

In datatable definition you should have enabled

 checkboxRefresh:true,

the function which will add a class in my row

function chkClick(value, obj){
if (obj.chk) {
	return "row-marked";
} 
return "";
}