Skip to content

Commit c87b1d8

Browse files
author
QuantLab
committed
render formula
1 parent 87a0f7a commit c87b1d8

17 files changed

Lines changed: 1790 additions & 1524 deletions

demo/formula.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset='utf-8'>
5+
<title>Formula - Handsontable</title>
6+
<link rel="stylesheet" media="screen" href="../dist/@quantlab/handsontable.full.css">
7+
<script src="../dist/@quantlab/handsontable.full.js"></script>
8+
</head>
9+
<body>
10+
<div id="xls"></div>
11+
<script>
12+
var data = [
13+
['=$B$2', "Maserati", "Mazda", "Mercedes", "Mini", "=A$1"],
14+
[2009, 0, 2941, 4303, 354, 5814],
15+
[2010, 5, 2905, 2867, '=SUM(A4,2,3)', '=$B1'],
16+
[2011, 4, 2517, 4822, 552, 6127],
17+
[2012, '=SUM(A2:A5)', '=SUM(B5,E3)', '=A2/B2', 12, 4151],
18+
];
19+
var container = document.getElementById('xls');
20+
var hot = new Handsontable(container, {
21+
data: data,
22+
honeycombPlugin: true,
23+
rowHeaders: true,
24+
colHeaders: true,
25+
manualColumnResize: true,
26+
manualRowResize: true,
27+
minRows: 128,
28+
minCols: 32,
29+
colWidths: 100,
30+
contextMenu: true,
31+
formulas: true,
32+
outsideClickDeselects: false
33+
});
34+
</script>
35+
</body>
36+
</html>

dist/@quantlab/handsontable.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/@quantlab/handsontable.full.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
*
2626
* Version: 0.33.0
27-
* Date: Wed Aug 02 2017 17:31:54 GMT+0800 (China Standard Time)
27+
* Date: Fri Aug 04 2017 16:54:30 GMT+0800 (China Standard Time)
2828
*/
2929
@charset "UTF-8";
3030

0 commit comments

Comments
 (0)