Commit db21eb3b authored by Jérome Perrin's avatar Jérome Perrin

example commit to explain where initial data from spreadsheet should be read

parent 5aa48435
......@@ -59,7 +59,8 @@
edges: {},
preference: {},
general: {},
wip_part_spreadsheet: [[
//XXX do not set spreadsheet default here but in the spreadsheet gadget
/* wip_part_spreadsheet: [[
"Order ID",
"Due Date",
"Priority",
......@@ -81,13 +82,13 @@
"Sequence",
"Capacity Requirements"
]],
capacity_by_station_spreadsheet: [[
"Day",
"CS1"
]],
dp_capacity_spreadsheet: [[ ]],
dp_route_spreadsheet: [[ ]]
},
// capacity_by_station_spreadsheet: [[
// "Day",
// "CS1"
// ]],
// dp_capacity_spreadsheet: [[ ]],
// dp_route_spreadsheet: [[ ]]
*/ },
name = "Untitled";
return new RSVP.Queue()
......
......@@ -86,8 +86,12 @@
.push(function (result_list) {
// XXX here, get options to create some columns,
// creating empty list from options
data = JSON.parse(result_list[0]).tutorial_spreadsheet;
if (!data) {
data = configuration columns
}
return result_list[1].render(
JSON.stringify(JSON.parse(result_list[0]).tutorial_spreadsheet),
JSON.stringify(data),
{ minSpareRows: 1,
onChange: function () {
if (gadget.timeout) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment