diff options
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/documents.js b/lib/documents.js index a6d5dd0..100d004 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -148,10 +148,13 @@ function Image(options) { }; } -function Table(children) { +function Table(children, properties) { + properties = properties || {}; return { type: types.table, - children: children + children: children, + styleId: properties.styleId || null, + styleName: properties.styleName || null }; } |
