diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-11-30 11:20:20 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-11-30 11:20:20 +0000 |
| commit | 3751195339954f49f525446de0795d2acad2c234 (patch) | |
| tree | fb177eed0d2ad356f438cbfb35ff045760c87f0e /lib/documents.js | |
| parent | f79db6f1dd40c5ff0325e2a5ea4d99485ce18bf4 (diff) | |
Read complex field checkboxes, always unchecked
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; |
