Created
June 30, 2015 11:32
-
-
Save krasnobaev/5a33124b0e4708856566 to your computer and use it in GitHub Desktop.
JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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