Skip to content

Instantly share code, notes, and snippets.

@krasnobaev
Created June 30, 2015 11:32
Show Gist options
  • Save krasnobaev/5a33124b0e4708856566 to your computer and use it in GitHub Desktop.
Save krasnobaev/5a33124b0e4708856566 to your computer and use it in GitHub Desktop.
JavaScript
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="handsontable.full.css" rel="stylesheet">
<script src="handsontable.full.js"></script>
<script>
$(document).ready(function () {
var container = document.getElementById('content');
var data = function () {
return Handsontable.helper.createSpreadsheetData(100, 12);
};
var hot = new Handsontable(container, {
data: data(),
height: 396,
colHeaders: true,
rowHeaders: true,
stretchH: 'all',
columnSorting: true,
contextMenu: true
});
});
</script>
</head>
<body>
<div id="content"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment