aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-20 18:29:32 -0400
committerbob <bcz@cs.brown.edu>2019-03-20 18:29:32 -0400
commitd888a56abfee2934e0426258c7b24cfff3ad1a77 (patch)
treec1698073f5093bdec424d08882980662786b35b8 /src/client/documents/Documents.ts
parent9173f3d1c2c6f46e6fc8f197f0daf74c84d9f8c6 (diff)
switched to a tree view for performance and added dragging tree view items.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index b1e1f8c7b..cf6d7d503 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -212,6 +212,9 @@ export namespace Documents {
export function SchemaDocument(documents: Array<Document>, options: DocumentOptions, id?: string) {
return assignToDelegate(SetInstanceOptions(GetCollectionPrototype(), { ...options, viewType: CollectionViewType.Schema }, [documents, ListField], id), options)
}
+ export function TreeDocument(documents: Array<Document>, options: DocumentOptions, id?: string) {
+ return assignToDelegate(SetInstanceOptions(GetCollectionPrototype(), { ...options, viewType: CollectionViewType.Tree }, [documents, ListField], id), options)
+ }
export function DockDocument(config: string, options: DocumentOptions, id?: string) {
return assignToDelegate(SetInstanceOptions(GetCollectionPrototype(), { ...options, viewType: CollectionViewType.Docking }, [config, TextField], id), options)
}