Copy only focusedCell

This commit is contained in:
Faris Ansari 2017-11-29 13:05:37 +05:30
parent 6751dbc070
commit f8174da9c5
4 changed files with 1092 additions and 1080 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -434,6 +434,13 @@ export default class CellManager {
}
copyCellContents($cell1, $cell2) {
if (!$cell2 && $cell1) {
// copy only focusedCell
const { colIndex, rowIndex } = $.data($cell1);
const cell = this.getCell(colIndex, rowIndex);
copyTextToClipboard(cell.content);
return;
}
const cells = this.getCellsInRange($cell1, $cell2);
if (!cells) return;

View File

@ -14,7 +14,7 @@ export default class Style {
}
destroy() {
this.datatable.wrapper.removeChild(this.styleEl);
this.styleEl.remove();
}
setStyle(rule, styleMap, index = -1) {