From 56f861dcec1443c84af2f3bd98c4422ccdf82e1c Mon Sep 17 00:00:00 2001 From: madelinegr Date: Mon, 25 Feb 2019 20:00:43 -0500 Subject: pin and remove doc --- src/client/documents/Documents.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/client/documents/Documents.ts') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 15ecfbfe6..376f27192 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -11,6 +11,7 @@ import { CollectionView, CollectionViewType } from "../views/collections/Collect import { FieldView } from "../views/nodes/FieldView"; import { HtmlField } from "../../fields/HtmlField"; import { WebView } from "../views/nodes/WebView"; +import { PresentationView } from "../views/PresentationView"; export interface DocumentOptions { x?: number; @@ -190,4 +191,12 @@ export namespace Documents { export function DockDocument(config: string, options: DocumentOptions, id?: string) { return CollectionDocument(config, CollectionViewType.Docking, options, id) } + + export function PresentationDocument(documents: Array, options: DocumentOptions, id?: string) { + let doc = GetCollectionPrototype().MakeDelegate(id); + setupOptions(doc, options); + doc.SetData(KeyStore.Data, documents, ListField); + doc.SetNumber(KeyStore.ViewType, CollectionViewType); + return doc; + } } \ No newline at end of file -- cgit v1.2.3-70-g09d2