Create a basic javascript spreadsheet

There are a few different ways to load data to your javavascript spreadsheet, the most basic is loading a spreadsheet from a javascript array, as below:



Source code

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

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

<script>
var data = [
    [ '1', '2', '3' ],
    [ '4', '5', '6' ],
];

jexcel(document.getElementById('spreadsheet'), {
    data: data,
    minDimensions: [ 10,10 ],
    license: '39130-64ebc-bd98e-26bc4',
});
</script>
</html>