UNPKG

handsontable

Version:

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

18 lines (17 loc) 562 B
"use strict"; exports.__esModule = true; const command = exports.command = { name: 'moveCellSelectionToMostInlineStart', callback(hot) { const { selection, columnIndexMapper } = hot; const fixedColumns = parseInt(hot.getSettings().fixedColumnsStart, 10); const row = hot.getSelectedRangeLast().highlight.row; const column = columnIndexMapper.getNearestNotHiddenIndex(fixedColumns, 1); selection.markSource('keyboard'); selection.setRangeStart(hot._createCellCoords(row, column)); selection.markEndSource(); } };