add Spreadsheet demo

This commit is contained in:
rolux 2011-11-30 17:36:17 +01:00
parent 2861954d35
commit da0742e542
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>OxJS Spreadsheet Demo</title
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../../dev/Ox.js"></script>
<script type="text/javascript" src="js/spreadsheet.js"></script>
</head>
<body>
</body>
</html>

View file

@ -0,0 +1,13 @@
Ox.load('UI', function() {
Ox.Spreadsheet({
columnPlaceholder: 'Year',
columns: [2009, 2010, 2011],
rowPlaceholder: 'Item',
rows: ['Foo', 'Bar', 'Baz'],
title: 'Spreadsheet'
})
.css({margin: '16px'})
.appendTo(Ox.$body);
});