Skip to content

templateCopy

sets the template according to which data will be copied to clipboard from each currently selected cell

let templateCopy: function
webix.grid({
data:grid_data,
clipboard:"selection",
select:true,
columns:[
{id:"title", fillspace:true},
{id:"year", width:70},
{id:"votes"}
],
templateCopy:function(text, row, col){
return "Copied: "+text;
}
});

also check the next samples:

The template function takes the following parameters:

  • text - the text of the cell
  • row - the row id
  • col - the column id

Articles