Fixing bottom rows

优质
小牛编辑
121浏览
2023-12-01

You can fix the bottom rows of the table, by using the fixedRowsBottom config option. This way, when you're scrolling the table, the fixed rows will stay at the bottom edge of the table's container.

Example below shows a table with two bottom rows fixed.

var
myData = Handsontable.helper.createSpreadsheetData(100, 50),
container = document.getElementById('example'),
hot;

hot = new Handsontable(container, {
  data: myData,
  rowHeaders: true,
  colHeaders: true,
  fixedRowsBottom: 2
});