diff options
author | bob <bcz@cs.brown.edu> | 2019-03-20 18:29:32 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-03-20 18:29:32 -0400 |
commit | d888a56abfee2934e0426258c7b24cfff3ad1a77 (patch) | |
tree | c1698073f5093bdec424d08882980662786b35b8 /src/client/documents/Documents.ts | |
parent | 9173f3d1c2c6f46e6fc8f197f0daf74c84d9f8c6 (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.ts | 3 |
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) } |