diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-19 16:03:09 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-19 16:03:09 -0400 |
| commit | 5e9bcf2e35415fd0ab4dec4f0141511cd4d312d0 (patch) | |
| tree | 9f10e9fb6fc12fd741853727f363723a954dc61a /src/client/documents | |
| parent | 64de59fc4250eff5284380ca2743030aa453fce7 (diff) | |
split masonry collection view into its own view type.
Diffstat (limited to 'src/client/documents')
| -rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 11df6c152..47ed33adf 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -410,6 +410,10 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { schemaColumns: new List(["title"]), ...options, viewType: CollectionViewType.Stacking }); } + export function MasonryDocument(documents: Array<Doc>, options: DocumentOptions) { + return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { schemaColumns: new List(["title"]), ...options, viewType: CollectionViewType.Masonry }); + } + export function DockDocument(documents: Array<Doc>, config: string, options: DocumentOptions, id?: string) { return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { ...options, viewType: CollectionViewType.Docking, dockingConfig: config }, id); } |
