SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.singleCopy  property

If it is true, even if there are multiple cells in the selected cell area, it will copy only the value of focused cell. 

If it is false, it will copy all cells contained in the selection area to clipboard. 

Defaults to false.

Getter
function singleCopy(): Boolean
Setter
function setSingleCopy(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            singleCopy: true,
            singlePaste: true
        }
    });
Code -2
    grid.setEditOptions({
        singleCopy: true,
        singlePaste: true
    });
Code -3
    grid.editOptions().setSingleCopy(true);
See Also
singlePaste
Cell Editing Overview
Examples
Clipboard
Cell Editing