diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-01-18 20:28:53 -0500 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-01-18 20:28:53 -0500 |
commit | 4d2bd0796c839b25ed9b96319957d02fbe452aca (patch) | |
tree | 6444155dd2c6bc13ed372301f5108b76e6bceaa9 /src/util/SelectionManager.ts | |
parent | 8b7b321b934e6520eac2c7d4e2ea8fd6f9cf0089 (diff) |
yuck
Diffstat (limited to 'src/util/SelectionManager.ts')
-rw-r--r-- | src/util/SelectionManager.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/SelectionManager.ts b/src/util/SelectionManager.ts index 52c92d174..2a63248c4 100644 --- a/src/util/SelectionManager.ts +++ b/src/util/SelectionManager.ts @@ -28,4 +28,12 @@ export namespace SelectionManager { export function IsSelected(doc: DocumentView): boolean { return manager.SelectedDocuments.indexOf(doc) !== -1; } + + export function DeselectAll(): void { + manager.SelectedDocuments = [] + } + + export function SelectedDocuments(): Array<DocumentView> { + return manager.SelectedDocuments; + } }
\ No newline at end of file |