/*=========================================================================================
    File Name: handsontable-columns-only.js
    Description: Handsontable Columns Only.
    ----------------------------------------------------------------------------------------
    Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
    Version: 1.0
    Author: PIXINVENT
    Author URL: http://www.themeforest.net/user/pixinvent
==========================================================================================*/

document.addEventListener("DOMContentLoaded", function() {

    /**********************************
     *      StretchH last column       *
     **********************************/

    var stretch = document.getElementById('stretch'),
        hot1;

    hot1 = new Handsontable(stretch, {
        data: Handsontable.helper.createSpreadsheetData(10, 6),
        colWidths: 47,
        rowHeaders: true,
        colHeaders: true,
        stretchH: 'last',
        contextMenu: true
    });



    /**********************
     *      Freezing       *
     **********************/

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

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

});
