Spreadsheet

Layout

Currently there are two native layouts: the default and the modern. The latter can be selected by adding jexcel_modern class to the spreadsheet DIV container.



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

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

<script>
var toggle = function() {
    if (document.getElementById('spreadsheet').classList.contains('jss_modern')) {
        document.getElementById('spreadsheet').classList.remove('jss_modern');
    } else {
        document.getElementById('spreadsheet').classList.add('jss_modern');
    }
}

jspreadsheet(document.getElementById('spreadsheet'), {
    worksheets: [
        { minDimensions: [10,10] },
    ]
});
</script>

<button type="button" onclick="toggle()">Toggle skin </button>
</html>