You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.2 KiB

1 year ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. document.addEventListener("DOMContentLoaded", function() {
  2. var hot1, example=document.getElementById("scrolling");
  3. hot1=new Handsontable(example, {
  4. data: Handsontable.helper.createSpreadsheetData(100, 100), height: 400, colWidths: 50, rowHeights: 32, rowHeaders: !0, colHeaders: !0
  5. }
  6. );
  7. var hot, myData=Handsontable.helper.createSpreadsheetData(100, 50), container=document.getElementById("fixing");
  8. hot=new Handsontable(container, {
  9. data: myData, colWidths: [47, 47, 47, 47, 47, 47, 47, 47, 47, 47], rowHeaders: !0, colHeaders: !0, fixedRowsTop: 2, fixedColumnsLeft: 2
  10. }
  11. );
  12. var hot, container=document.getElementById("resizing");
  13. hot=new Handsontable(container, {
  14. data: Handsontable.helper.createSpreadsheetData(10, 10), rowHeaders: !0, colHeaders: !0, colWidths: [55, 80, 80, 80, 80, 80, 80], rowHeights: [50, 40, 100], manualColumnResize: !0, manualRowResize: !0
  15. }
  16. );
  17. var hot, moving=document.getElementById("moving");
  18. hot=new Handsontable(moving, {
  19. data: Handsontable.helper.createSpreadsheetData(100, 20), rowHeaders: !0, colHeaders: !0, manualColumnMove: !0, manualRowMove: !0
  20. }
  21. )
  22. }
  23. );