templateCopy

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

function templateCopy;

Example

webix.ui({
    view:"datatable",
    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;
    }
});

Related samples

Details

The template function takes the following parameters:

  • text - the text of the cell
  • row - the row id
  • col - the column id
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.