how to strike and strike out in through text on clicking checkbox in datatable in webix
Can you share a sketch of desired functionality ?
Have a look at this piece of code:
1.A datatable consists of 2 columns( 1 for checkbox and other value)checkbox
2. on click of the checkbox it should strike through the text to show the user that it has alredy been selected.
{
view:"datatable",margin:50,
id:"chk",
columns:[
//checkbox column
{
id:"ch1", header:{ content:"masterCheckbox" }, template:"{common.checkbox()}", width:40,margin:100},
{ id:"task", header:"Today's tasks",width:200},
],
autoheight:true,
autowidth:true,
multiselect:true,
select:'row',
data: webix.copy(tasks)
}
You can use onCheck event and from it call addRowCss ( addCellCss ) to style the necessary cell
http://webix.com/snippet/dbf0f202