add Spreadsheet demo
This commit is contained in:
parent
2861954d35
commit
da0742e542
2 changed files with 24 additions and 0 deletions
11
demos/spreadsheet/index.html
Normal file
11
demos/spreadsheet/index.html
Normal 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>
|
13
demos/spreadsheet/js/spreadsheet.js
Normal file
13
demos/spreadsheet/js/spreadsheet.js
Normal 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);
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in a new issue