summaryrefslogtreecommitdiffstats
path: root/t/data
diff options
context:
space:
mode:
authorJason <jason@socialflow.com>2013-08-27 14:01:50 +0000
committerJason <jason@socialflow.com>2013-08-27 14:01:50 +0000
commitc41829e1b87eb19d80776d422938f7fff25f3c76 (patch)
tree742d3cbcb027f8484294bfc2ba305b1a39de6f51 /t/data
parent72cb31cbc57dbe60a1cd4e069569eb1fd3472006 (diff)
downloadspreadsheet-template-c41829e1b87eb19d80776d422938f7fff25f3c76.tar.gz
spreadsheet-template-c41829e1b87eb19d80776d422938f7fff25f3c76.zip
documentation for merge helper function and added a test demonstrating functionality
Diffstat (limited to 't/data')
-rw-r--r--t/data/merge.json27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/data/merge.json b/t/data/merge.json
new file mode 100644
index 0000000..2a86bdf
--- /dev/null
+++ b/t/data/merge.json
@@ -0,0 +1,27 @@
+%% my $default = { color => '#000000', size => 14 };
+%% format(basic => $default.merge({bold => true()}));
+
+{
+ "selection" : 0,
+ "worksheets" : [
+ {
+ "column_widths" : [ 14.6, 18.5, 15.8, 12.2 ],
+ "name" : "Merge Report 1",
+ "selection" : [ 1, 9 ],
+ "row_heights" : [ 25, 18, 18, 18 ],
+ "cells" : [
+ %% for $rows -> $row {
+ [
+ [% c($row.value1, "basic") %],
+ [% c($row.value2, "basic") %],
+ [% c($row.value3, "basic") %],
+ [% c($row.value4, "basic") %]
+ ]
+ %% }
+ ],
+ "merge" : [
+ [% merge('A1:D1', 'Merged Cells', 'basic') %]
+ ]
+ }
+ ]
+}