Skip to content

Commit

Permalink
Row span
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmr13 committed Jul 15, 2016
1 parent 24469ab commit 029c193
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SheetsTemplater.gs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ var QuickDrive = function (DriveApp, SpreadsheetApp, newConfig) {
json = properties.json,
cellProperties = getValueOnJson(json, command.substring(2, command.length - 1)),
range = sheet.getRange(row, col);
range.setValue(cellProperties.value);
if (cellProperties.value) {
range.setValue(cellProperties.value);
}
if (cellProperties.backgroundColor) {
range.setBackground(cellProperties.backgroundColor);
}
Expand All @@ -203,6 +205,9 @@ var QuickDrive = function (DriveApp, SpreadsheetApp, newConfig) {
if (cellProperties.borderStyle && cellProperties.borderColor) {
range.setBorder(true, true, true, true, true, true, cellProperties.borderColor, SpreadsheetApp.BorderStyle[cellProperties.borderStyle]);
}
if (cellProperties.rowSpan) {
sheet.getRange(row, col, 1, parseInt(cellProperties.rowSpan, 10)).merge();
}
};

function insertFormula(properties) {
Expand Down

0 comments on commit 029c193

Please sign in to comment.