Skip to content

Commit

Permalink
Add opportunity to rotate table text docx. https://docs.microsoft.com…
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsimakov authored and Alexey Simakov committed Aug 11, 2020
1 parent 4bfff80 commit d863a4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/docx/docxtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ module.exports = {
if (opts.vMerge) {
cellObj['w:tc']['w:tcPr']['w:vMerge'] = { '@w:val': opts.vMerge }
}
if (opts.textDirection) {
cellObj['w:tc']['w:tcPr']['w:textDirection'] = { '@w:val': opts.textDirection }
}

return cellObj
}
Expand Down
3 changes: 2 additions & 1 deletion manual/docx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ var table = [
fill: "92CDDC",
themeFill: "text1",
"themeFillTint": "80"
}
},
textDirection: 'btLr' // to rotate text, or 'tbRl' to another direction
}
}],
[1,'All grown-ups were once children',''],
Expand Down

0 comments on commit d863a4e

Please sign in to comment.