UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

23 lines (22 loc) 493 B
"use strict"; exports.__esModule = true; const command = exports.command = { name: 'extendCellsSelectionToRows', callback(hot) { const { selection } = hot; const { highlight, from, to } = hot.getSelectedRangeLast(); selection.markSource('keyboard'); if (selection.isSelectedByColumnHeader()) { selection.selectAll(true, true); } else { hot.selectRows(from.row, to.row, highlight); } selection.markEndSource(); } };