Create a basic spreadsheet

How to create a basic spreadsheet from a JavaScript array.



Source code

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

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

<input type='button' value='Selected cells' onclick="console.log(j.getData(true))" class='jexcel_object'>

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

jspreadsheet(document.getElementById('spreadsheet'), {
    data: data,
    minDimensions: [ 10,10 ],
    license: 'YWI1OTAyYzAyYjAxOGU0YjRmMjAwNWQ5MjQ4ZGY2MWNiNzZmNDQxYzRkOTkzZTRmODI4N2I5NGFjNzZmMjJhY2E0Y2NmNzA1NmQ1ZTY1YzQ2ZjMzMjlkYjMzZTk5MzZkYjYxNGZlNGI2NTlmYjA4ODMzMGRkZmE2MGY4Y2RmZWIsZXlKdVlXMWxJam9pU25Od2NtVmhaSE5vWldWMElpd2laR0YwWlNJNk1UWTJORFF4T0RNMk9Td2laRzl0WVdsdUlqcGJJbXB6Y0hKbFlXUnphR1ZsZEM1amIyMGlMQ0pqYjJSbGMyRnVaR0p2ZUM1cGJ5SXNJbXB6YUdWc2JDNXVaWFFpTENKamMySXVZWEJ3SWl3aWJHOWpZV3hvYjNOMElsMHNJbkJzWVc0aU9pSXpJaXdpYzJOdmNHVWlPbHNpZGpjaUxDSjJPQ0lzSW5ZNUlpd2lZMmhoY25Seklpd2labTl5YlhNaUxDSm1iM0p0ZFd4aElpd2ljR0Z5YzJWeUlpd2ljbVZ1WkdWeUlpd2lZMjl0YldWdWRITWlMQ0pwYlhCdmNuUWlMQ0ppWVhJaUxDSjJZV3hwWkdGMGFXOXVjeUlzSW5ObFlYSmphQ0pkTENKa1pXMXZJanAwY25WbGZRPT0=',
});
</script>
</html>