diff options
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/documents.js b/lib/documents.js index c37ec05..2613a7a 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -6,6 +6,7 @@ var types = exports.types = { run: "run", text: "text", tab: "tab", + checkbox: "checkbox", hyperlink: "hyperlink", noteReference: "noteReference", image: "image", @@ -87,6 +88,13 @@ function Tab() { }; } +function Checkbox(options) { + return { + type: types.checkbox, + checked: options.checked + }; +} + function Hyperlink(children, options) { return { type: types.hyperlink, @@ -227,6 +235,7 @@ exports.paragraph = exports.Paragraph = Paragraph; exports.run = exports.Run = Run; exports.text = exports.Text = Text; exports.tab = exports.Tab = Tab; +exports.checkbox = exports.Checkbox = Checkbox; exports.Hyperlink = Hyperlink; exports.noteReference = exports.NoteReference = NoteReference; exports.Notes = Notes; |
