diff options
author | bobzel <zzzman@gmail.com> | 2020-06-28 17:06:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 17:06:39 -0400 |
commit | eb403262aa4c1dd12dba8029fec70552cbce70bc (patch) | |
tree | 0e03fb85b8df64367b6eae36cacf42430ace408c /src/client/documents/Documents.ts | |
parent | 7a78bc39fa2b005d67499bcd6baf19b9dce0eb18 (diff) | |
parent | 777030e88d177daa1f61365c22b945b8808ec61a (diff) |
Merge pull request #376 from browngraphicslab/3D_carousel
3D Carousel
Diffstat (limited to 'src/client/documents/Documents.ts')
-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 e8801df90..f71984ca6 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -717,6 +717,10 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { _chromeStatus: "collapsed", schemaColumns: new List([new SchemaHeaderField("title", "#f1efeb")]), ...options, _viewType: CollectionViewType.Carousel }); } + export function Carousel3DDocument(documents: Array<Doc>, options: DocumentOptions) { + return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { _chromeStatus: "collapsed", schemaColumns: new List([new SchemaHeaderField("title", "#f1efeb")]), ...options, _viewType: CollectionViewType.Carousel3D }); + } + export function SchemaDocument(schemaColumns: SchemaHeaderField[], documents: Array<Doc>, options: DocumentOptions) { return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { _chromeStatus: "collapsed", schemaColumns: new List(schemaColumns.length ? schemaColumns : [new SchemaHeaderField("title", "#f1efeb")]), ...options, _viewType: CollectionViewType.Schema }); } |