diff options
| author | srichman333 <sarah_n_richman@brown.edu> | 2023-07-06 14:34:41 -0400 |
|---|---|---|
| committer | srichman333 <sarah_n_richman@brown.edu> | 2023-07-06 14:34:41 -0400 |
| commit | 7aa9c94d3033c616e61b7406573d3c7ca5ce7909 (patch) | |
| tree | 5701f0c1fa53cfb7994b4d7846493c140eec1901 /src/client/documents/Documents.ts | |
| parent | a5294e6ba7fcf82eb3d22c0c187ce351ee698ce5 (diff) | |
| parent | e4ad92e7300ee7844a514379c8a01d0f01cb3a59 (diff) | |
Merge branch 'master' into data-visualization-sarah
Diffstat (limited to 'src/client/documents/Documents.ts')
| -rw-r--r-- | src/client/documents/Documents.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 00864c6fd..934803c16 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -172,6 +172,7 @@ export class DocumentOptions { 'acl-Public'?: string; // public permissions '_acl-Public'?: string; // public permissions type?: DTYPEt = new DTypeInfo('type of document', true); + type_collection?: COLLt = new CTypeInfo('how collection is rendered'); // sub type of a collection _type_collection?: COLLt = new CTypeInfo('how collection is rendered'); // sub type of a collection title?: STRt = new StrInfo('title of document'); caption?: RichTextField; @@ -1156,7 +1157,7 @@ export namespace Docs { } export function DockDocument(documents: Array<Doc>, config: string, options: DocumentOptions, id?: string) { - return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { treeViewFreezeChildren: 'remove|add', ...options, _type_collection: CollectionViewType.Docking, dockingConfig: config }, id); + return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { treeViewFreezeChildren: 'remove|add', ...options, type_collection: CollectionViewType.Docking, dockingConfig: config }, id); } export function DirectoryImportDocument(options: DocumentOptions = {}) { |
