handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
12 lines • 391 B
JavaScript
export const command = {
name: 'moveCellSelectionToMostInlineEnd',
callback(hot) {
const {
selection,
columnIndexMapper
} = hot;
selection.markSource('keyboard');
selection.setRangeStart(hot._createCellCoords(hot.getSelectedRangeLast().highlight.row, columnIndexMapper.getNearestNotHiddenIndex(hot.countCols() - 1, -1)));
selection.markEndSource();
}
};