handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
19 lines (18 loc) • 446 B
JavaScript
;
exports.__esModule = true;
const command = exports.command = {
name: 'moveCellSelectionToMostBottom',
callback(hot) {
const {
selection
} = hot;
const {
col
} = hot.getSelectedRangeActive().highlight;
let row = hot.rowIndexMapper.getNearestNotHiddenIndex(hot.countRows() - 1, -1);
if (row === null) {
row = -1;
}
selection.setRangeStart(hot._createCellCoords(row, col));
}
};