aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authortschicke-brown <tyler_schicke@brown.edu>2019-03-16 21:54:27 -0400
committerGitHub <noreply@github.com>2019-03-16 21:54:27 -0400
commit972d7c28f2f99ee0fa8f0de521e7798edc4fd556 (patch)
tree9fcb3eb93fd4048c64c8ddcd9755e9f2d093cd53 /src/client/documents/Documents.ts
parent0a1b68e534aebf6f5fa6af31fd6a1e3d63f299d1 (diff)
parenta5a5e17adb4f5881c905baa13669c0ca4e884467 (diff)
Merge pull request #60 from browngraphicslab/template
Template
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 05bc743be..7b6409a62 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -215,4 +215,17 @@ export namespace Documents {
+ FormattedTextBox.LayoutString(fieldName + "Key") +
`</div>
</div>` };
+
+ function Caption() {
+ return (`
+<div>
+ <div style="margin:auto; height:85%; width:85%;">
+ {layout}
+ </div>
+ <div style="height:15%">
+ <FormattedTextBox doc={Document} DocumentViewForField={DocumentView} bindings={bindings} fieldKey={"CaptionKey"} isSelected={isSelected} select={select} selectOnLoad={SelectOnLoad} isTopMost={isTopMost}/>
+ </div>
+</div>
+ `)
+ }
} \ No newline at end of file