Products

Back to Examples

Freeze columns

Define the number of freeze columns by using the freezeColumn directive with tableOverflow as follows:

IMPORTANT: This feature is not available on Edge or Internet Explorer at this moment.

<html>
<script src="https://jspreadsheet.com/v5/jspreadsheet.js"></script>
<script src="https://jsuites.net/v5/jsuites.js"></script>
<link rel="stylesheet" href="https://jspreadsheet.com/v5/jspreadsheet.css" type="text/css" />
<link rel="stylesheet" href="https://jsuites.net/v5/jsuites.css" type="text/css" />

<div id="spreadsheet"></div>

<script>
jspreadsheet(document.getElementById('spreadsheet'), {
    minDimensions: [20,200],
    tableOverflow: true,
    lazyLoading: true,
    tableWidth: '800px',
    allowComments: true,
    freezeColumns: 3,
    license: '39130-64ebc-bd98e-26bc4',
});
</script>
</html>